V3FIT
parambs.f
1  MODULE parambs
2  USE vmec0
3  USE bootsj_input
4  REAL(rprec), PARAMETER :: pi = 3.141592653589793238462643_dp
5  REAL(rprec), PARAMETER :: mu0 = 4.0e-7_dp*pi
6  INTEGER, PARAMETER :: nlambda = 101 !this now ONLY governs the trapped calcualtion
7  INTEGER :: nthetah, nzetah !poloidal, toridal grid parameters
8  INTEGER, PARAMETER :: nthetahm = 32 !poloidal, toroidal grid refinement
9  INTEGER, PARAMETER :: nzetahm = 16 !for bmax
10  INTEGER, PARAMETER :: iotasign = 1
11  REAL(rprec), PARAMETER :: zetasign = -1
12  INTEGER :: irdim, irup
13  INTEGER, DIMENSION(:), ALLOCATABLE :: jlist, jlist_idx
14  REAL(rprec) delta_rho_1
15  REAL(rprec), DIMENSION(:), ALLOCATABLE :: flux,
16  1 aiogar, aipsi, gpsi, pres1,
17  2 betar, dense, densi, tempe1, tempi1
18  INTEGER, DIMENSION(:), ALLOCATABLE :: idx
19  REAL(rprec), DIMENSION(:,:), ALLOCATABLE ::
20  1 bfield, gsqrt_b, b2obm, omb32, bfieldm, ! arrays to store quantities on the
21  2 sinmi, sinnj, cosmi, cosnj, ! theta phi grid
22  2 sinmim, sinnjm, cosmim, cosnjm ! quantities that are on the theata
23 
24  REAL(rprec), DIMENSION(:), ALLOCATABLE ::
25  1 dibs, aibs, dibst, aibst, phip,
26  2 bsdense, bsdensi, bstempe, bstempi, bsdenste, bsdensti,
27  3 bstempte, bstempti, qsafety, capr, caps, h2,
28  4 ftrapped, fpassing, epsttok, fttok, b2avg,
29  5 gbsnorm, aiterm1, other1, ajBbs,
30  6 rhoar, bsnorm, fptok, amain, d_rho,
31  7 bmax1, thetamax, zetahmax
32  REAL(rprec) alphae, alphai , psimax
33  REAL(rprec) temperho1, tempirho1, densrho1
34  REAL(rprec), DIMENSION(:,:,:), ALLOCATABLE :: amnfit
35  REAL(rprec) periods
36  REAL(rprec), DIMENSION(:), ALLOCATABLE :: theta, zetah
37  REAL(rprec), DIMENSION(nthetahm) :: thetam
38  REAL(rprec), DIMENSION(nzetahm) :: zetahm
39  complex(rprec), DIMENSION(:,:), ALLOCATABLE ::
40  1 dmn, fmn, alpha1mn
41  REAL(rprec), DIMENSION(:,:), ALLOCATABLE :: rfmn
42  REAL(rprec) avgbobm2, sum_gsqrt_b
43  REAL(rprec), DIMENSION(136) :: w1, alamb_h
44 CCCCfix needed--put nlambda variables into the trapped fraction calculation
45  REAL(rprec) dlambda, drho
46  REAL(rprec) sign_jacobian
47  LOGICAL, DIMENSION(:), ALLOCATABLE :: lsurf
48  LOGICAL l_boot_all, lscreen
49  END MODULE parambs