EIRAM
atomic and molecular data in form of polynomial fits
Modules | Functions/Subroutines | Variables
eiram_test.f90 File Reference

Unit tests for eiram.f90. More...

Go to the source code of this file.

Modules

module  eiram_test
 

Functions/Subroutines

logical function, public eiram_test::eiram_test_wrong_file ()
 Test for correct error codes if the input file does not exist or is malformed. More...
 
logical function, public eiram_test::eiram_test_used_uninitialized ()
 Test for correct error codes if eiram is used without initialization. More...
 
logical function, public eiram_test::eiram_test_load ()
 Technical test which shows that expected number of reactions is loaded from each input file. More...
 
logical function, public eiram_test::eiram_test_wrong_ids ()
 Test for correct error codes if reaction ID is invalid. More...
 
logical function, public eiram_test::eiram_test_unknown_reaction ()
 Test for correct error code when querying id for an unknown reaction. More...
 
logical function, public eiram_test::eiram_test_wrong_type ()
 Test for correct error codes if _calc1 is called for double polynomial or _calc2, _calc12 is called for single polynomial. More...
 
logical function, public eiram_test::eiram_test_wrong_size ()
 Test for correct error codes in case of mismatch of the array lengths. More...
 
logical function, public eiram_test::eiram_test_calculation ()
 Regression tests: compare calculated values with references. More...
 
logical function, public eiram_test::eiram_test_calc12 ()
 Regression test for subroutines _calc12 and _get_order compare _calc12 with subsequent call of _fit with _calc2. More...
 
logical function, public eiram_test::eiram_test_image ()
 Technical test of eiram_create_image. More...
 
program test
 

Variables

real(eiram_dp), parameter eiram_test::rel_tolerance = 1e-7
 Maximum relative error, parameter which is used to compare two values. More...
 
character(*), parameter eiram_test::data_file_path = "../data/"
 
integer, parameter eiram_test::n_reactions = 5
 
integer, parameter eiram_test::n_energy = 5
 
character(9), dimension(n_reactions), parameter eiram_test::files = (/ "HYDHELvk " , "AMJUELvk " , "HYDHELvk " , "AMJUELvk ", "METHANEvk" /)
 
character(6), dimension(n_reactions), parameter eiram_test::types = (/ "H.1" , "H.2" , "H.3" , "H.4", "H.2" /)
 
character(8), dimension(n_reactions), parameter eiram_test::indices = (/ "3.1.8 ", "2.4B0 ", "3.1.8 " , "2.1.5 ", "2.23 "/)
 
real(eiram_dp), dimension(n_energy), parameter eiram_test::energy = (/ 5e-1, 1e0, 1e1, 1e2, 1e3 /)
 
real(eiram_dp), dimension(n_reactions), parameter eiram_test::x1 = (/ -1e0, -1e0, 1e1, 1e6, -1e0 /)
 
real(eiram_dp), dimension(n_energy, n_reactions), parameter eiram_test::reference_values = reshape( (/ 6.313479104896471d-15, 6.034774383818398d-15, 4.631473573509119d-15, 3.143444136405398d-15, 1.744077658482620d-15, 1.229920711197272d-16, 1.857264485174120d-12, 2.944795004910767d-08, 1.073462933550498d-07, 7.992508213267738d-08, 2.064031139307574d-08, 2.084428058191167d-08, 2.582052648196180d-08, 4.420072796238867d-08, 8.043311877821200d-08, 1.865302180435326d-19, 4.904897322289924d-14, 9.954471496437615d-09, 4.738209685016329d-08, 2.907993073331902d-08, 1.320141447945264d-18, 9.051595057476462d-14, 2.966866133652682d-08, 1.909445571151299d-07, 1.391314913417069d-07 /), (/N_ENERGY,N_REACTIONS/))
 Reference values for regression tests in eiram_test_calculation. More...
 

Detailed Description

Unit tests for eiram.f90.

Authors
Markus Brenneis Marku.nosp@m.s.Br.nosp@m.ennei.nosp@m.s@un.nosp@m.i-due.nosp@m.ssel.nosp@m.dorf..nosp@m.de, Vladislav Kotov v.kot.nosp@m.ov@f.nosp@m.z-jue.nosp@m.lich.nosp@m..de (contact person)

Definition in file eiram_test.f90.

Function/Subroutine Documentation

program test ( )