Skip to content

Commit

Permalink
Fix a regression bug in atavedata (#774)
Browse files Browse the repository at this point in the history
Fix a regression bug
  • Loading branch information
lfarv authored Jun 3, 2024
1 parent d57c28d commit 71f94a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atmat/atphysics/atavedata.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
avemu(lg,:)=0.5*(mu0+mu1);
avedisp(lg,[1 3])=(disp1(:,[1 3])+disp0(:,[1 3]))*0.5;
avedisp(lg,[2 4])=(disp1(:,[1 3])-disp0(:,[1 3]))./L2;
foc=atgetcells(ring(long),'PolynomB',@(el,polb) length(polb)>=2 && polb(2)~=0||polb(3)~=0); %long
foc=atgetcells(ring(long),'PolynomB',@(el,polb) ...
(el.MaxOrder>=1 && polb(2)~=0) ||(el.MaxOrder>=2 && polb(3)~=0)); %long
if any(foc)
qp=false(size(lg));
qp(lg)=foc;
Expand Down

0 comments on commit 71f94a1

Please sign in to comment.