tstHeaderRead.f90

./Manager/wrap/tests/tstHeaderRead.f90

1 program tstheaderread
3 
4 #include "ScaleSTL/FortranTestMacros.h"
5 
6 !Add dynamic path info for ARP library
7 use origen_testpaths_m
8 !
9 use nemesis_comm, only: build_types, initialize, finalize, node
10 
11 implicit none
12 
13 type(origen_librarywrapper) :: lib
14 
15 logical :: file_exists
16 
17 call initialize
18 call build_types
19 if ( node() /= 0 ) call finalize
20 
21 
22 inquire(file=w14_e15_filepath,exist=file_exists)
23 expect_true(file_exists)
24 
25 !!! Initialize library, load the first burnup, and print some info.
26 call lib%initialize(w14_e15_filepath)
27 call lib%set_pos(1)
28 call lib%print_info()
29 
30 expect_eq(2237, lib%get_itot())
31 expect_eq(54564, lib%get_non())
32 expect_eq(0, lib%get_nti())
33 expect_eq(30, lib%get_nfiso())
34 
35 !destroy
36 call lib%destroy()
37 
38 call finalize
39 
40 end program