@@ -27,13 +27,15 @@ subroutine quasisymmetry_max_r_before_singularity()
27
27
max_j_phi = N_phi
28
28
! if (local_verbose) max_j_phi = 1
29
29
do j = 1 , max_j_phi
30
+ ! local_verbose = (j==1)
30
31
31
32
! Write sqrt(g) = r * [g0 + r*g1c*cos(theta) + (r^2)*(g20 + g2s*sin(2*theta) + g2c*cos(2*theta) + ...]
32
- ! The coefficients are evaluated in "20200322-02 Max r for Garren Boozer.nb", in the section "Order r^2 construction, expanding "
33
+ ! The coefficients are evaluated in "20200322-02 Max r for Garren Boozer.nb", in the section "Order r^2 construction, quasisymmetry "
33
34
34
35
g0 = lp * X1c(j) * Y1s(j)
35
36
36
37
! g1s = -2*X20(j)*Y1c(j) + 2*X2c(j)*Y1c(j) + 2*X2s(j)*Y1s(j) + 2*X1c(j)*Y20(j) - 2*X1c(j)*Y2c(j)
38
+ ! g1s vanishes for quasisymmetry.
37
39
38
40
g1c = lp* (- 2 * X2s(j)* Y1c(j) + 2 * X20(j)* Y1s(j) + 2 * X2c(j)* Y1s(j) + 2 * X1c(j)* Y2s(j) - X1c(j)* X1c(j)* Y1s(j)* curvature(j))
39
41
@@ -234,6 +236,7 @@ subroutine quasisymmetry_max_r_before_singularity()
234
236
call quasisymmetry_quartic_roots(coefficients, real_parts, imag_parts)
235
237
236
238
if (local_verbose) then
239
+ print " (a,i5,a)" ," ------------ r_singularity solve at j_phi=" ,j," -------------"
237
240
print * ," g0:" ,g0," g1c:" ,g1c
238
241
print * ," g20:" ,g20," g2s:" ,g2s," g2c:" ,g2c
239
242
print * ," K0:" ,K0," K2s:" ,K2s," K2c:" ,K2c
0 commit comments