source: XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/run_sub_test.sh @ 1708

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

Generic_testcase : simplification of files and cleanup

  • Property svn:executable set to *
File size: 595 bytes
Line 
1#!/bin/bash
2
3
4cp ../user_config.py sub_config1.py
5cp ../config.py sub_config2.py
6cp ../check.py sub_check.py
7cp ../default_param.py default_param.py
8
9
10touch report.txt
11> report.txt
12
13nb_config=$(python sub_config1.py 2>&1)                                                                                                                   
14
15
16counter=0
17while [ $counter -lt $nb_config ]
18do
19
20rm -f user_param.py
21
22cp user_param.py.$counter user_param.py
23
24((counter++))
25
26nb_proc=$(python sub_config2.py 2>&1) 
27
28mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe
29
30
31python sub_check.py
32
33done
Note: See TracBrowser for help on using the repository browser.