VMEC 8.52
3D Equilibrium solver with nested flux surfaces.
Loading...
Searching...
No Matches
reset_params.f90
Go to the documentation of this file.
1
3
6SUBROUTINE reset_params
7
8 USE vmec_main, ONLY: ivac, ftolv, fsqr, fsqz, fsq, &
10 lconm1, z00, dp
11 USE vmec_input, ONLY: delt
12 USE stel_constants, only: zero
13 USE mgrid_mod, ONLY: nextcur, mgrid_mode
14
15 IMPLICIT NONE
16
17 ivac = -1
18
19 fsqr = 1.0_dp
20 fsqz = 1.0_dp
21 ftolv = fsqr
22
23 fsq = 1.0_dp
24
25 iter2 = 1
26 iter1 = iter2
27
28 ijacob = 0
29
30 first = 1
31
32 res0 = -1.0_dp
33
34 delt0r = delt
35
36! #ifndef _HBANGLE
38 lconm1 = .true.
39! #end /* ndef _HBANGLE */
40
41 z00 = zero
42 ! r00 gets assiged in profil1d and in funct3d
43
45 mgrid_mode = 'S'
46 nextcur = 0
47
48END SUBROUTINE reset_params
character(len=1) mgrid_mode
Definition mgrid_mod.f:102
integer nextcur
Definition mgrid_mod.f:78
real(dp), parameter zero
real(rprec) delt
real(rprec) fsq
real(rprec) ftolv
integer iter1
number of iterations at which the currently active evolution was branched off from
real(rprec) fsqr
Definition vmec_main.f90:94
real(rprec) fsqz
Definition vmec_main.f90:95
integer first
"counter" monitoring sign of jacobian; resets R, Z, and Lambda when jacobian changes sign and decreas...
real(rprec) z00
Definition vmec_main.f90:91
real(rprec) delt0r
integer ivac
counts number of free-boundary iterations
logical lconm1
integer ijacob
counter for number of times jacobian changes sign
real(rprec) res0
integer iter2
total number of iterations
subroutine reset_params
Reset some flow-control parameters to their default values.