15 use deallocate_structures
18 type (type_equilibrium
),
pointer :: euitm_equilibrium(:)
19 logical,
save :: first = .true.
20 integer,
save :: ncall = 0
22 character*32 :: filename, user, tokamak, ual_version
23 integer(itm_i4) :: i, iargc
29 write(*,*)
'args should be: filename shot run user tokamak ual_version'
30 stop
'error: missing arguments'
45 write(*,*)
'Processing ',trim(filename), shot, run, trim(user), trim(tokamak), trim(ual_version)
47 call open_read_file(1, filename)
48 allocate(euitm_equilibrium(1))
49 call read_cpo(euitm_equilibrium(1),
'equilibrium')
54 CALL euitm_create_env(
'euitm', shot, run, 0, 0, idx, &
55 user, tokamak, ual_version)
56 euitm_equilibrium(1)%time = time
57 write(*,*)
'euitm_put_non_timed: equilibrium', euitm_equilibrium(1)%time
58 call euitm_put_non_timed(idx,
"equilibrium",euitm_equilibrium(1))
59 write(*,*)
'euitm_put_slice: equilibrium', euitm_equilibrium(1)%time
60 call euitm_put_slice(idx,
"equilibrium",euitm_equilibrium(1))
62 call deallocate_cpo(euitm_equilibrium)
program ascii_equilibrium_to_ual
Run helena based on a CPO stored in ascii format.