Last change
on this file since 1721 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.4 KB
|
Rev | Line | |
---|
[1715] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | cp -n ../context_grid_dynamico.xml ./ |
---|
| 4 | cp -n ../dynamico_grid.nc ./ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | rm -f sub_config1.py |
---|
| 8 | rm -f sub_config2.py |
---|
| 9 | rm -f sub_check.py |
---|
| 10 | rm -f default_param.py |
---|
| 11 | |
---|
| 12 | cp -n ../../user_config.py sub_config1.py |
---|
| 13 | cp -n ../../config.py sub_config2.py |
---|
| 14 | cp -n ../../check.py sub_check.py |
---|
| 15 | cp -n ../../default_param.py default_param.py |
---|
| 16 | |
---|
[1721] | 17 | # Black 0;30 Dark Gray 1;30 |
---|
| 18 | # Red 0;31 Light Red 1;31 |
---|
| 19 | # Green 0;32 Light Green 1;32 |
---|
| 20 | # Brown/Orange 0;33 Yellow 1;33 |
---|
| 21 | # Blue 0;34 Light Blue 1;34 |
---|
| 22 | # Purple 0;35 Light Purple 1;35 |
---|
| 23 | # Cyan 0;36 Light Cyan 1;36 |
---|
| 24 | # Light Gray 0;37 White 1;37 |
---|
[1715] | 25 | |
---|
[1721] | 26 | |
---|
| 27 | Color='\033[0;36m' |
---|
| 28 | NC='\033[0m' # No Color |
---|
| 29 | |
---|
[1715] | 30 | touch report.txt |
---|
| 31 | > report.txt |
---|
[1716] | 32 | echo " " >> report.txt |
---|
| 33 | echo " " >> report.txt |
---|
[1721] | 34 | echo -e "testing ${Color}average${NC} reduce..." >> report.txt |
---|
[1716] | 35 | echo " " >> report.txt |
---|
[1715] | 36 | |
---|
| 37 | nb_config=$(python sub_config1.py 2>&1) |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | counter=0 |
---|
| 41 | while [ $counter -lt $nb_config ] |
---|
| 42 | do |
---|
| 43 | |
---|
| 44 | rm -f user_param.py |
---|
| 45 | |
---|
| 46 | cp user_param.py.$counter user_param.py |
---|
| 47 | |
---|
| 48 | ((counter++)) |
---|
| 49 | |
---|
| 50 | nb_proc=$(python sub_config2.py 2>&1) |
---|
| 51 | |
---|
[1718] | 52 | if [$machine_name == irene] |
---|
| 53 | then |
---|
| 54 | ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe |
---|
| 55 | else |
---|
| 56 | mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe |
---|
| 57 | fi |
---|
[1715] | 58 | |
---|
| 59 | python sub_check.py |
---|
| 60 | |
---|
| 61 | rm -f iodef.xml |
---|
| 62 | mv iodef.xml.bkp iodef.xml |
---|
| 63 | |
---|
| 64 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.