Skip to content

Commit 3bb752d

Browse files
Merge pull request #147 from EXP-code/biorthBasisTypo
Fix two typos
2 parents 658c86f + 0aed180 commit 3bb752d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

expui/BiorthBasis.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,8 +1994,8 @@ namespace BasisClasses
19941994

19951995
auto v = cyl_eval(R, z, phi);
19961996

1997-
double potx = v[4]*x/R - v[8]*y/R;
1998-
double poty = v[4]*y/R + v[8]*x/R;
1997+
double potx = v[6]*x/R - v[8]*y/R;
1998+
double poty = v[6]*y/R + v[8]*x/R;
19991999

20002000
return {v[0], v[1], v[2], v[3], v[4], v[5], potx, poty, v[7]};
20012001
}
@@ -2671,8 +2671,8 @@ namespace BasisClasses
26712671

26722672
auto v = cyl_eval(R, z, phi);
26732673

2674-
double potx = v[4]*x/R - v[8]*y/R;
2675-
double poty = v[4]*y/R + v[8]*x/R;
2674+
double potx = v[6]*x/R - v[8]*y/R;
2675+
double poty = v[6]*y/R + v[8]*x/R;
26762676

26772677
return {v[0], v[1], v[2], v[3], v[4], v[5], potx, poty, v[7]};
26782678
}

0 commit comments

Comments
 (0)