Skip to content

Commit

Permalink
STELLOPT: Fixed issue with initalization of quasiiso target.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazersos committed Nov 11, 2024
1 parent 6cffe88 commit 18b9117
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions STELLOPTV2/Sources/Chisq/chisq_quasiiso.f90
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ SUBROUTINE chisq_quasiiso(target,sigma,niter,iflag)
USE stellopt_runtime
USE stellopt_targets
USE equil_utils, ONLY: get_equil_iota
USE read_boozer_mod
USE read_boozer_mod, ONLY: bmnc_b, ixn_b, ixm_b, mnboz_b, ns_b, nfp_b
USE vmec_input, ONLY: mpol, ntor
! USE stel_kinds, ONLY: rprec

!-----------------------------------------------------------------------
! Input/Output Variables
Expand Down Expand Up @@ -179,10 +180,8 @@ SUBROUTINE chisq_quasiiso(target,sigma,niter,iflag)
DO ik = 1, nsd
IF (ABS(sigma(ik)) < bigno) THEN
lbooz(ik) = .TRUE.
DO mn = 1, mnboz_b
mtargets = mtargets + 1
IF (niter == -2) target_dex(mtargets) = jtarget_quasiiso
END DO
mtargets = mtargets + 1
IF (niter == -2) target_dex(mtargets) = jtarget_quasiiso
END IF
END DO
END IF
Expand Down

0 comments on commit 18b9117

Please sign in to comment.