From dda82fea9e99e6a1e9c060739414cde161fcbadf Mon Sep 17 00:00:00 2001 From: Travis Askham Date: Mon, 1 Apr 2024 14:11:07 -0400 Subject: [PATCH] closes #65 --- chunkie/@chunkgraph/balance.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chunkie/@chunkgraph/balance.m b/chunkie/@chunkgraph/balance.m index dfa9bca..01e5be6 100644 --- a/chunkie/@chunkgraph/balance.m +++ b/chunkie/@chunkgraph/balance.m @@ -39,7 +39,6 @@ parcl = zeros([numel(vedge),1]); pinds = zeros([numel(vedge),1]); - [~,wleg16,~,~] = lege.exps(16); for ii=1:numel(vedge) if (sign(vsign(ii)) == -1) ds = obj.echnks(vedge(ii)).d(:,:,1); @@ -51,11 +50,8 @@ h = obj.echnks(vedge(ii)).h(pinds(ii)); k = obj.echnks(vedge(ii)).k; - if (k ~=16) - [~,wleg,~,~] = lege.exps(k); - else - wleg = wleg16; - end + + wleg = echnks(vedge(ii)).wstor; arc = sum(sqrt(ds(1,:).^2+ds(2,:).^2).*wleg'*h); parcl(ii) = arc;