Extpar is tested with an adapted version of the COSMO technical testsuite.
First step is to compile the code following the instructions in compile_run.
cp bin/* test/testsuite/bin/.
cd test/testsuite
./data/get_data.sh
./bin/extract_inputfiles_from_namelist.py
sbatch --wait ./submit.daint.transfer.sh
sbatch submit.daint.sh
cp bin/* test/testsuite/bin/.
cd test/testsuite
./data/get_data.sh
./bin/extract_inputfiles_from_namelist.py
sbatch --wait ./submit.tsa.transfer.sh
sbatch submit.tsa.sh
cp bin/* test/testsuite/bin/.
cd test/testsuite
./data/get_data.sh
sbatch submit.levante.sh
The results of the testsuite can be found in file testsuite.out
An example output could look as follows:
There are many different testlist, each containing a set of tests for different setups, compiler or models:
It is possible to define an optional tolerance threshold for each test and each field. To allow deviations for the test icon_d2 for example, just dit the the tolerances-file. The syntax is as follows:
PARAMETER, abs_diff
NDVI, 9.0e-08
W_SNOW, 5.0e-05
-
Modify the testlist.xml file to add the new test. Alternatively, you could also add a new testlist XML file (with a new name). The testlist which is run can be chosen from the testsuite command line.
-
Make a folder in the data folder for the new test containing the INPUT_* files and the namelist.py for the Python-CDO modules.
-
Send any binary reference files to upload to the ftp site to the source code administrator.