13 subroutine helenaxpath(EQUILIBRIUM_IN,EQUILIBRIUM_OUT, code_parameters)
22 subroutine helena(equilibrium_in, equilibrium_out, path, code_parameters)
24 type (type_equilibrium
),
pointer :: equilibrium_in(:)
25 type (type_equilibrium
),
pointer :: equilibrium_out(:)
26 character(len = 132),
optional :: path
27 type (type_param
) :: code_parameters
33 TYPE (type_equilibrium
),
POINTER :: equilibrium_in(:)
34 type (type_param
) :: code_parameters
36 TYPE (type_equilibrium
),
POINTER :: equilibrium_out(:)
38 if(
associated(equilibrium_in(1)%profiles_1d%jparallel))
then
39 write(*,*)
'helena_wrapper copied jparallel to jphi [ERROR]'
40 if(.not.
associated(equilibrium_in(1)%profiles_1d%jphi)) &
41 allocate(equilibrium_in(1)%profiles_1d%jphi(
size(equilibrium_in(1)%profiles_1d%jparallel)))
42 equilibrium_in(1)%profiles_1d%jphi = - equilibrium_in(1)%profiles_1d%jparallel
44 if(
associated(equilibrium_in(1)%profiles_1d%psi))
then
45 write(*,*)
'helena_wrapper set psi_bound and psi_ax [ERROR]'
46 equilibrium_in(1)%global_param%psi_ax = equilibrium_in(1)%profiles_1d%psi(1)
47 equilibrium_in(1)%global_param%psi_bound = &
48 equilibrium_in(1)%profiles_1d%psi(
size(equilibrium_in(1)%profiles_1d%psi))
52 call
f_par_axis(
size(equilibrium_in(1)%profiles_1d%rho_tor), &
53 equilibrium_in(1)%profiles_1d%rho_tor,equilibrium_in(1)%profiles_1d%pressure)
56 CALL
helena(equilibrium_in, equilibrium_out, code_parameters=code_parameters)
58 if(.not.
associated(equilibrium_out(1)%profiles_1d%jparallel))
then
59 write(*,*)
'helena_wrapper copied jphi to jparallel [ERROR]'
60 allocate(equilibrium_out(1)%profiles_1d%jparallel(
size(equilibrium_out(1)%profiles_1d%jphi)))
61 equilibrium_out(1)%profiles_1d%jparallel = - equilibrium_out(1)%profiles_1d%jphi
subroutine helena(equilibrium_in, equilibrium_out, in_path, code_parameters)
subroutine helenaxpath(EQUILIBRIUM_IN, EQUILIBRIUM_OUT, code_parameters)
Module to cope with problems in fc2k.
subroutine f_par_axis(n, r, f)
This subroutine finds f(r_1=0) from f(r_2), f(r_3) d/dr f(r_1)=0.