13 use deallocate_structures
21 type (type_equilibrium
),
pointer :: reference(:), test(:)
22 character(len = 132) :: filename_reference_equilibrium
23 character(len = 132) :: filename_new_equilibrium
24 character(len = 132) :: path
25 integer(itm_i4),
parameter :: iu6 = 6
29 filename_reference_equilibrium =
'equilibrium_opteron'
30 filename_new_equilibrium =
'equilibrium.cpo'
33 allocate(reference(1))
37 call set_read_verbosity(0)
38 call open_read_file(12, trim(adjustl(path)) &
39 // trim(adjustl(filename_reference_equilibrium)))
40 call read_cpo(reference(1),
'equilibrium')
44 call set_read_verbosity(0)
45 call open_read_file(12, trim(adjustl(path)) &
46 // trim(adjustl(filename_new_equilibrium)))
47 call read_cpo(test(1),
'equilibrium')
51 call set_diff_verbosity(0)
52 call reset_diff_counter
53 call set_error_level(0._r8)
64 call deallocate_cpo(reference)
65 call deallocate_cpo(test)
character(len=132) function maximum_relative_error_float(diff_counter, error_level, reference_field_float, new_field_float, reference_field_array3dflt_type, new_field_array3dflt_type, reference_field_array4dflt_type, new_field_array4dflt_type, reference_field_array5dflt_type, new_field_array5dflt_type, reference_field_array6dflt_type, new_field_array6dflt_type, reference_field_array7dflt_type, new_field_array7dflt_type, reference_field_matflt_type, new_field_matflt_type, reference_field_vecflt_type, new_field_vecflt_type)
character(len=132) function are_identical_float(diff_counter, error_level, reference_field_float, new_field_float, reference_field_array3dflt_type, new_field_array3dflt_type, reference_field_array4dflt_type, new_field_array4dflt_type, reference_field_array5dflt_type, new_field_array5dflt_type, reference_field_array6dflt_type, new_field_array6dflt_type, reference_field_array7dflt_type, new_field_array7dflt_type, reference_field_matflt_type, new_field_matflt_type, reference_field_vecflt_type, new_field_vecflt_type)
character(len=132) function chi_square_float(diff_counter, error_level, reference_field_float, new_field_float, reference_field_array3dflt_type, new_field_array3dflt_type, reference_field_array4dflt_type, new_field_array4dflt_type, reference_field_array5dflt_type, new_field_array5dflt_type, reference_field_array6dflt_type, new_field_array6dflt_type, reference_field_array7dflt_type, new_field_array7dflt_type, reference_field_matflt_type, new_field_matflt_type, reference_field_vecflt_type, new_field_vecflt_type)
character(len=132) function average_relative_error_float(diff_counter, error_level, reference_field_float, new_field_float, reference_field_array3dflt_type, new_field_array3dflt_type, reference_field_array4dflt_type, new_field_array4dflt_type, reference_field_array5dflt_type, new_field_array5dflt_type, reference_field_array6dflt_type, new_field_array6dflt_type, reference_field_array7dflt_type, new_field_array7dflt_type, reference_field_matflt_type, new_field_matflt_type, reference_field_vecflt_type, new_field_vecflt_type)
This module is an example for the error_analysis module which shall hold the user defined error analy...
program check_equilibrium