18 type (type_equilibrium
),
pointer :: equilibrium_in(:), equilibrium_out(:)
19 type (type_param
) :: code_parameters
20 integer :: idx, shot, run, i
23 subroutine eqaugm(eq_in, eq_out, code_parameters)
26 type (type_equilibrium
),
pointer :: eq_in(:), eq_out(:)
27 type (type_param
) :: code_parameters
31 call fill_param(code_parameters,
'XML/equilibrium_augmenter.xml',
'',
'XML/equilibrium_augmenter.xsd')
35 write(*,*)
'Reading ', shot, run
36 call euitm_open(
'euitm', shot, run, idx)
37 call euitm_get(idx,
'equilibrium', equilibrium_in)
40 call eqaugm(equilibrium_in, equilibrium_out, code_parameters)
42 write(*,*)
'Writing ', shot, run+10000
43 call euitm_create(
'euitm', shot, run+10000, 0, 0, idx)
44 call euitm_put(idx,
'equilibrium', equilibrium_out)
Augment an inverse equilibrium with psi, Br, Bz and Bphi as a function of R and Z.
program test_equilibrium_augmenter
Test the equilibrium augmenter.
subroutine euitm_close(idx)