To install the base of test cases (starting with SURFEX 9.1.0)
The STRATO tests base is included in the GIT repository, in the directory STRATO/TESTS/
- 1. Choose two surfex versions ("old" and "new") to test
- 2. Choose a run directory, for example /home/username/run_base_test
In this run directory, you need to link:- $SRC_SURFEX/MY_RUN/ECOCLIMAP/*.bin
- executables for the old version of the SURFEX code to be compared: pgd_old.exe, prep_old.exe, soda_old.exe, offline_old.exe
- executables for the new version of the SURFEX code to be compared: pgd_new.exe, prep_new.exe, soda_new.exe, offline_new.exe
- In the run directory, copy the directory TESTS/ from the surfex GIT repository.
- 3. open and modify:
- TESTS/PC/script_all.sh (on a standard PC) or TESTS/BEAUFIX/script_all.sh (on belenos): 3 first lines:
dir_run="/home/username/run_base_test" (type your own rundir name)
exec_new="_new" (type your own extension for new executables)
exec_old="_old" (type your own extension for old executables) - TESTS/PYTHON/compR.cfg:
verN="name of your new version, for output files"
verO="name of your old version, for output files"
basedir="/home/faroux/run_base_test/" (type your own rundir name)CAUTION: there must be a "/" at the end of basedir.
- TESTS/PC/script_all.sh (on a standard PC) or TESTS/BEAUFIX/script_all.sh (on belenos): 3 first lines:
- 4. Data to run STRATO: Since version V9.1.0 and code management under GitHub, only scripts of STRATO are stored in the Git repository. All additional data used for the various tests are not included anymore in the repository.
So you need to:- Download the package with the data corresponding to your version of SURFEX
- Untar this package where you want (/home/username/STRATO-DATA in this exemple)
- Open script-link-data.sh
- Modify the two first lines to indicate where are located :
- your STRATO (/home/username/run_base_test in this exemple)
- your package with STRATO data (/home/username/STRATO-DATA in this exemple) - Execute script-link-data.sh

