12SUBROUTINE getfsq(gcr, gcz, gnormr, gnormz, gnorm, medge)
13 USE vmec_main,
ONLY: rprec, ns, ns1, mnsize, dp
17 INTEGER,
INTENT(in) :: medge
18 REAL(rprec),
INTENT(out) :: gnormr, gnormz
19 REAL(rprec),
INTENT(in) :: gnorm
20 REAL(rprec),
DIMENSION(ns,mnsize*ntmax),
INTENT(in) :: gcr, gcz
28 gnormr = gnorm * sum(gcr(:jsmax,:)**2.0_dp)
29 gnormz = gnorm * sum(gcz(:jsmax,:)**2.0_dp)
subroutine getfsq(gcr, gcz, gnormr, gnormz, gnorm, medge)
Compute total force residual on flux surfaces.