ETS  \$Id: Doxyfile 2162 2020-02-26 14:16:09Z g2dpc $
 All Classes Files Functions Variables Pages
test_equilibrium_augmenter.f90
Go to the documentation of this file.
1 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
7 ! + + + + + + + + + + + + + + + + + + + + + + + + + + + +
9 
10  use euitm_schemas
11  use euitm_routines
12  use itm_types
14  USE xml_file_reader
15 
16  implicit none
17 
18  type (type_equilibrium), pointer :: equilibrium_in(:), equilibrium_out(:)
19  type (type_param) :: code_parameters
20  integer :: idx, shot, run, i
21 
22  interface
23  subroutine eqaugm(eq_in, eq_out, code_parameters)
24  use euitm_schemas
25  implicit none
26  type (type_equilibrium), pointer :: eq_in(:), eq_out(:)
27  type (type_param) :: code_parameters
28  end subroutine eqaugm
29  end interface
30 
31  call fill_param(code_parameters, 'XML/equilibrium_augmenter.xml', '', 'XML/equilibrium_augmenter.xsd')
32 
33  shot=20116
34  run=702
35  write(*,*) 'Reading ', shot, run
36  call euitm_open('euitm', shot, run, idx)
37  call euitm_get(idx, 'equilibrium', equilibrium_in)
38  call euitm_close(idx)
39 
40  call eqaugm(equilibrium_in, equilibrium_out, code_parameters)
41 
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)
45  call euitm_close(idx)
46 
47  stop
48 
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)