- Timestamp:
- 09/13/19 13:49:42 (5 years ago)
- Location:
- XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/check.py
r1708 r1712 7 7 def main(): 8 8 9 configNamePattern=[0 , 0, 0, 0, 0, 0]9 configNamePattern=[0]*7 10 10 11 11 f=open("user_param.py", "r") … … 24 24 elif line.startswith("Duration"): 25 25 configNamePattern[5] = '_Duration=' + Duration 26 elif line.startswith("ATMdomain"): 27 configNamePattern[5] = '_ATMdomain=' + ATMdomain 26 28 f.close() 27 29 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/config.py
r1708 r1712 16 16 f.write('NumberServers = ' + repr(NumberServers) + '\n') 17 17 f.write('duration = ' + repr(Duration) + '\n') 18 f.write('ATMdomain = ' + ATMdomain + '\n') 18 19 f.write('/\n\n') 19 20 … … 22 23 nb_proc = NumberClients+NumberServers 23 24 24 filein = open("iodef.xml", "r") 25 os.rename("iodef.xml", "iodef.xml.bkp") 26 27 filein = open("iodef.xml.bkp", "r") 25 28 fileout = open("iodef.xml.tmp", "w") 26 29 for line in filein: 27 if 'number_pools_server2' in line: 28 fileout.write( " <variable id=\"number_pools_server2\" type=\"int\">"+repr(NumberPoolsServer2)+"</variable>\n") 29 elif 'using_server2' in line: 30 fileout.write( " <variable id=\"using_server2\" type=\"bool\">"+UsingServer2+"</variable>\n") 31 elif 'ratio_server2' in line: 32 fileout.write( " <variable id=\"ratio_server2\" type=\"int\">"+repr(RatioServer2)+"</variable>\n") 30 if 'xios::nbplSrv2' in line: 31 line = line.replace("xios::nbplSrv2", repr(NumberPoolsServer2)) 32 fileout.write(line) 33 elif 'xios::usingSrv2' in line: 34 line = line.replace("xios::usingSrv2", UsingServer2) 35 fileout.write(line) 36 elif 'xios::ratioSrv2' in line: 37 line=line.replace("xios::ratioSrv2", repr(RatioServer2)) 38 fileout.write(line) 39 elif 'atm::domain' in line: 40 line=line.replace("atm::domain", ATMdomain) 41 fileout.write(line) 33 42 else: 34 43 fileout.write(line) -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/default_param.py
r1708 r1712 5 5 NumberServers = 4 6 6 Duration = '1d' 7 ATMdomain = 'lmdz' -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/run_sub_test.sh
r1708 r1712 28 28 mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe 29 29 30 31 30 python sub_check.py 32 31 32 rm -f iodef.xml 33 mv iodef.xml.bkp iodef.xml 34 33 35 done -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/iodef.xml
r1707 r1712 1 1 <?xml version="1.0"?> 2 2 3 <simulation> 3 4 … … 6 7 7 8 <variable id="timestep"> 1h </variable> 8 <variable id="domain"> lmdz</variable>9 <variable id="domain_mask"> false </variable>10 <variable id="axis_mask"> false </variable>9 <variable id="domain"> atm::domain </variable> 10 <variable id="domain_mask"> true </variable> 11 <variable id="axis_mask"> true </variable> 11 12 <variable id="init_field2D"> rank </variable> 12 13 <variable id="ni"> 36 </variable> … … 51 52 52 53 <variable_group id="parameters" > 53 <variable id="using_server" type="bool"> true</variable>54 <variable id="using_server" type="bool">xios::usingSrv2</variable> 54 55 <variable id="info_level" type="int">100</variable> 55 56 <variable id="print_file" type="bool">true</variable> 56 <variable id="using_server2" type="bool"> true</variable>57 <variable id="ratio_server2" type="int"> 50</variable>58 <variable id="number_pools_server2" type="int"> 1</variable>57 <variable id="using_server2" type="bool">false</variable> 58 <variable id="ratio_server2" type="int">xios::ratioSrv2</variable> 59 <variable id="number_pools_server2" type="int">xios::nbplSrv2</variable> 59 60 <variable id="pure_one_sided" type="bool">false</variable> 60 61 <variable id="check_event_sync" type="bool">true</variable> -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/param.def
r1706 r1712 6 6 NumberServers = 4 7 7 duration = '1d' 8 ATMdomain = lmdz 8 9 / 9 10 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/iodef.xml
r1701 r1712 7 7 8 8 <variable id="timestep"> 1h </variable> 9 <variable id="domain"> lmdz</variable>9 <variable id="domain"> atm::domain </variable> 10 10 <variable id="domain_mask"> true </variable> 11 11 <variable id="axis_mask"> true </variable> … … 52 52 53 53 <variable_group id="parameters" > 54 <variable id="using_server" type="bool"> true</variable>54 <variable id="using_server" type="bool">xios::usingSrv2</variable> 55 55 <variable id="info_level" type="int">100</variable> 56 56 <variable id="print_file" type="bool">true</variable> 57 <variable id="using_server2" type="bool"> true</variable>58 <variable id="ratio_server2" type="int"> 50</variable>59 <variable id="number_pools_server2" type="int"> 1</variable>57 <variable id="using_server2" type="bool">false</variable> 58 <variable id="ratio_server2" type="int">xios::ratioSrv2</variable> 59 <variable id="number_pools_server2" type="int">xios::nbplSrv2</variable> 60 60 <variable id="pure_one_sided" type="bool">false</variable> 61 61 <variable id="check_event_sync" type="bool">true</variable> -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/param.def
r1705 r1712 6 6 NumberServers = 4 7 7 duration = '1d' 8 ATMdomain = lmdz 8 9 / 9 10 -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_function/user_params.def
r1705 r1712 13 13 NumberServers = 2, 4 14 14 UsingServer2 = 'false', 'true' 15 # Duration = '1d', '2d' 16 # NumberPoolsServer2 = 1 15 ATMdomain = 'lmdz' -
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/user_config.py
r1708 r1712 6 6 def main(): 7 7 8 default_nb_config = 7 9 8 10 nb_config = 1; 9 configs = [0, 0, 0, 0, 0, 0] 10 configs_arg = [[],[],[],[],[],[]] 11 configs = [0]*default_nb_config 12 13 configs_arg = [[], [], [], [], [], [], []] 11 14 12 15 f=open("user_params.def", "r") … … 48 51 configs[5] += 1 49 52 configs_arg[5].append('Duration = '+word) 53 elif line.startswith("ATMdomain"): 54 line = line.replace("ATMdomain", "") 55 for word in line.split(): 56 configs[6] += 1 57 configs_arg[6].append('ATMdomain = '+word) 50 58 51 59 52 53 for x in range(6): 60 for x in range(default_nb_config): 54 61 if configs[x]==0: 55 62 configs[x] =1 … … 68 75 for i5 in range(configs[5]): 69 76 hasContent5 = len(configs_arg[5])>0 70 f ilename = "user_param.py."+repr(config_id)71 g = open(filename, "w")77 for i6 in range(configs[6]): 78 hasContent6 = len(configs_arg[6])>0 72 79 73 if hasContent0: g.write(configs_arg[0][i0]+'\n') 74 if hasContent1: g.write(configs_arg[1][i1]+'\n') 75 if hasContent2: g.write(configs_arg[2][i2]+'\n') 76 if hasContent3: g.write(configs_arg[3][i3]+'\n') 77 if hasContent4: g.write(configs_arg[4][i4]+'\n') 78 if hasContent5: g.write(configs_arg[5][i5]+'\n') 80 filename = "user_param.py."+repr(config_id) 81 g = open(filename, "w") 82 83 if hasContent0: g.write(configs_arg[0][i0]+'\n') 84 if hasContent1: g.write(configs_arg[1][i1]+'\n') 85 if hasContent2: g.write(configs_arg[2][i2]+'\n') 86 if hasContent3: g.write(configs_arg[3][i3]+'\n') 87 if hasContent4: g.write(configs_arg[4][i4]+'\n') 88 if hasContent5: g.write(configs_arg[5][i5]+'\n') 89 if hasContent6: g.write(configs_arg[6][i6]+'\n') 79 90 80 config_id +=181 g.close91 config_id +=1 92 g.close 82 93 83 94
Note: See TracChangeset
for help on using the changeset viewer.