Last change
on this file since 1722 was
1721,
checked in by yushan, 5 years ago
|
Generic_testcase : add folder xios_output in config reference to store XIOS output files
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | rm -f sub_config1.py |
---|
4 | rm -f sub_config2.py |
---|
5 | rm -f sub_check.py |
---|
6 | rm -f default_param.py |
---|
7 | |
---|
8 | cp -n ../user_config.py sub_config1.py |
---|
9 | cp -n ../config.py sub_config2.py |
---|
10 | cp -n ../check.py sub_check.py |
---|
11 | cp -n ../default_param.py default_param.py |
---|
12 | |
---|
13 | # Black 0;30 Dark Gray 1;30 |
---|
14 | # Red 0;31 Light Red 1;31 |
---|
15 | # Green 0;32 Light Green 1;32 |
---|
16 | # Brown/Orange 0;33 Yellow 1;33 |
---|
17 | # Blue 0;34 Light Blue 1;34 |
---|
18 | # Purple 0;35 Light Purple 1;35 |
---|
19 | # Cyan 0;36 Light Cyan 1;36 |
---|
20 | # Light Gray 0;37 White 1;37 |
---|
21 | |
---|
22 | |
---|
23 | Color='\033[0;36m' |
---|
24 | NC='\033[0m' # No Color |
---|
25 | |
---|
26 | touch report.txt |
---|
27 | > report.txt |
---|
28 | echo " " >> report.txt |
---|
29 | echo " " >> report.txt |
---|
30 | echo -e "testing ${Color}grid${NC} algorithms..." >> report.txt |
---|
31 | echo " " >> report.txt |
---|
32 | |
---|
33 | nb_config=$(python sub_config1.py 2>&1) |
---|
34 | |
---|
35 | |
---|
36 | counter=0 |
---|
37 | while [ $counter -lt $nb_config ] |
---|
38 | do |
---|
39 | |
---|
40 | rm -f user_param.py |
---|
41 | |
---|
42 | cp user_param.py.$counter user_param.py |
---|
43 | |
---|
44 | ((counter++)) |
---|
45 | |
---|
46 | nb_proc=$(python sub_config2.py 2>&1) |
---|
47 | |
---|
48 | if [$machine_name == irene] |
---|
49 | then |
---|
50 | ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe |
---|
51 | else |
---|
52 | mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe |
---|
53 | fi |
---|
54 | |
---|
55 | python sub_check.py |
---|
56 | |
---|
57 | rm -f iodef.xml |
---|
58 | mv iodef.xml.bkp iodef.xml |
---|
59 | |
---|
60 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.