V3FIT
vparams.f
1  MODULE vparams
2  USE stel_kinds
3  USE stel_constants, ONLY: zero,twopi,mu0,one
4  IMPLICIT NONE
5 !-----------------------------------------------
6 ! L o c a l P a r a m e t e r s
7 !-----------------------------------------------
8 !
9 ! MAXIMUM PARAMETERS FOR VMEC CODE (FOR READING INPUT)
10 ! USER SHOULD NOT ALTER THESE
11 !
12  INTEGER, PARAMETER :: nsd = 10001 !maximum number of radial nodes
13  INTEGER, PARAMETER :: mpold = 101 !maximum number of poloidal harmonics (in r,z,lam fourier series)
14  INTEGER, PARAMETER :: ntord = 101 !maximum number of toroidal harmonics
15  INTEGER, PARAMETER :: ndatafmax = nsd
16  INTEGER, PARAMETER :: nstore_seq = 100
17 
18 !
19 ! CONSTANTS
20 !
21  INTEGER, PARAMETER :: nthreed0=9, nmac0=nthreed0+1,
22  1 indata0=nthreed0+2, nwout0=nthreed0+3,
23  2 jxbout0=nthreed0+4
24  INTEGER, PARAMETER :: nfort8=8, nfort18=18
25  INTEGER, PARAMETER :: nlog0=51, nmercier0=52
26  INTEGER :: nthreed, nmac, nlog=nlog0
27 
28 !
29 ! DERIVED (FROM FUNDAMENTAL) PARAMETERS FOR VMEC CODE
30 !
31  INTEGER, PARAMETER :: mpol1d = mpold - 1
32  INTEGER, PARAMETER :: ntor1d = 1 + ntord
33 
34 !
35 ! MISCELLANEOUS PARAMETERS
36 !
37  REAL(rprec), PARAMETER :: c1pm2 = 1.e-2_dp
38  REAL(rprec), PARAMETER :: cp15 = 0.15_dp
39  REAL(rprec), PARAMETER :: cp25 = 0.25_dp
40  REAL(rprec), PARAMETER :: cp5 = 0.50_dp
41  REAL(rprec), PARAMETER :: c1pm8 = 1.0e-8_dp
42  REAL(rprec), PARAMETER :: cbig = 0.9e30_dp
43  REAL(rprec), PARAMETER :: c2p0 = 2
44  REAL(rprec), PARAMETER :: c3p0 = 3
45  REAL(rprec), PARAMETER :: cp05 = 0.05_dp
46  REAL(rprec), PARAMETER :: c1pm13 = 1.0e-13_dp
47  REAL(rprec), PARAMETER :: osqrt2 = 0.707106781186547462_dp
48  REAL(rprec), PARAMETER :: epstan = epsilon(zero)
49 
50  END MODULE vparams