source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_scalar_algo/run_sub_test.sh @ 1718

Last change on this file since 1718 was 1718, checked in by yushan, 5 years ago

Generic_test_case: add job script for Irene. correction for using newer version of cdo

  • Property svn:executable set to *
File size: 984 bytes
Line 
1#!/bin/bash
2rm -f sub_config1.py
3rm -f sub_config2.py
4rm -f sub_check.py
5rm -f default_param.py
6
7cp -n ../user_config.py sub_config1.py
8cp -n ../config.py sub_config2.py
9cp -n ../check.py sub_check.py
10cp -n ../default_param.py default_param.py
11
12
13touch report.txt
14> report.txt
15echo " " >> report.txt
16echo " " >> report.txt
17echo "testing scalar algorithms..." >> report.txt
18echo " " >> report.txt
19
20nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
21
22
23counter=0
24while [ $counter -lt $nb_config ]
25do
26
27rm -f user_param.py
28
29cp user_param.py.$counter user_param.py
30
31((counter++))
32
33nb_proc=$(python sub_config2.py 2>&1) 
34
35if [$machine_name == irene]
36then
37    ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe
38else  #machine_name=ada
39    mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
40fi
41python sub_check.py
42
43rm -f iodef.xml
44mv iodef.xml.bkp iodef.xml
45
46done
Note: See TracBrowser for help on using the repository browser.