3 #include "ScaleSTL/FortranTestMacros.h"
12 type(origen_libraryheader) :: definition
13 type(origen_decaydata) :: decay_data
14 type(origen_transitionstructure) :: tstruct
15 type(origen_transitioncoeff) :: tcoeff
16 type(origen_nuclideset) :: nucset
19 type(scalestl_vec_flt) :: fvec
20 type(scalestl_vec_int) :: ivec
21 real(C_FLOAT),
allocatable :: farr(:)
22 integer(C_INT),
allocatable :: iarr(:)
24 integer,
parameter :: l=c_size_t
27 call lib % initialize()
28 loaded = ff % Library_random1(lib,333)
29 if( .not. loaded )stop 1
34 call lib % getptr_definition(definition)
35 assert_c_assoc(definition)
38 call nucset % initialize()
39 call definition % get_nuclide_set(nucset)
45 call lib % getptr_decay_data(decay_data)
46 assert_c_assoc(decay_data)
47 expect_near( 1.50642300e-3 , decay_data%decay_constants(1) , 1e-5)
50 call lib % getptr_transition_structure(tstruct)
51 assert_c_assoc(tstruct)
52 call tstruct % getptr_num_parents_vec(ivec)
54 expect_eq(6,ivec%at(1_l))
55 expect_eq(2226_l,ivec%size())
57 call tstruct % get_num_parents(iarr)
59 expect_eq(2226,
size(iarr,1))
62 call lib % getptr_transition_coeff_at(tcoeff,1_l)
63 assert_c_assoc(tcoeff)
64 call tcoeff % getptr_matrix_vec(fvec)
66 expect_near(8.69777426e-03,fvec%at(1_l),1e-5)
68 call tcoeff % get_matrix(farr)
69 expect_near(8.69777426e-03,farr(1),1e-5)