source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/test_maximum/run_sub_test.sh @ 1721

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
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# 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
25
26
27Color='\033[0;36m'
28NC='\033[0m' # No Color
29
30
31touch report.txt
32> report.txt
33echo " " >> report.txt
34echo " " >> report.txt
35echo -e "testing ${Color}maximum${NC} reduce..." >> report.txt
36echo " " >> report.txt
37
38nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
39
40
41counter=0
42while [ $counter -lt $nb_config ]
43do
44
45rm -f user_param.py
46
47cp user_param.py.$counter user_param.py
48
49((counter++))
50
51nb_proc=$(python sub_config2.py 2>&1) 
52
53if [$machine_name == irene]
54then
55    ccc_mprun -n $nb_proc ../../../build_prod/bin/generic_testcase.exe
56else
57    mpirun -np $nb_proc ../../../build_prod/bin/generic_testcase.exe
58fi
59
60python sub_check.py
61
62rm -f iodef.xml
63mv iodef.xml.bkp iodef.xml
64
65done
Note: See TracBrowser for help on using the repository browser.