source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_average/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: 1.0 KB
Line 
1#!/bin/bash
2
3cp -n  ../context_grid_dynamico.xml ./
4cp -n ../dynamico_grid.nc ./
5
6
7rm -f sub_config1.py
8rm -f sub_config2.py
9rm -f sub_check.py
10rm -f default_param.py
11
12cp -n ../../user_config.py sub_config1.py
13cp -n ../../config.py sub_config2.py
14cp -n ../../check.py sub_check.py
15cp -n ../../default_param.py default_param.py
16
17
18touch report.txt
19> report.txt
20echo " " >> report.txt
21echo " " >> report.txt
22echo "testing average reduce..." >> report.txt
23echo " " >> report.txt
24
25nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
26
27
28counter=0
29while [ $counter -lt $nb_config ]
30do
31
32rm -f user_param.py
33
34cp user_param.py.$counter user_param.py
35
36((counter++))
37
38nb_proc=$(python sub_config2.py 2>&1) 
39
40if [$machine_name == irene]
41then
42    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe
43else
44    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe
45fi
46
47python sub_check.py
48
49rm -f iodef.xml
50mv iodef.xml.bkp iodef.xml
51
52done
Note: See TracBrowser for help on using the repository browser.