Ignore:
Timestamp:
10/04/19 17:36:51 (5 years ago)
Author:
yushan
Message:

GENERIC_TESTCASE : check all .nc files by default. Generate Cmake files from python scripts (user_config.py, setup.py). Add scripts for copy to/from compressed reference stored in /gpfswork/rech/psl/rpsl954 (Jean-Zay and Irene).

Location:
XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/checkfile.def

    r1725 r1734  
    1  
     1all 
    22atm_output_zoom.nc 
    33#atm_output_inverse.nc 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/context_atm.xml

    r1725 r1734  
    3535    </axis> 
    3636 
     37    <axis id="domain_Y_inverse" axis_ref="domain_Y"> 
     38        <inverse_axis /> 
     39    </axis> 
     40 
    3741  </axis_definition> 
    3842 
     
    6872    <grid id="grid_Y"> 
    6973      <axis axis_ref="domain_Y" /> 
     74    </grid> 
     75 
     76    <grid id="grid_Y_inverse"> 
     77      <axis axis_ref="domain_Y_inverse" /> 
    7078    </grid> 
    7179 
     
    391399     <file id="atm_output_zoom" output_freq="1ts" enabled="true"> 
    392400       <field field_ref="field_XY" grid_ref="grid_XY_zoom_Y" operation="instant" enabled="true"/> 
     401       <!-- <field field_ref="field_Y" grid_ref="grid_Y_inverse" operation="instant" enabled="true"/> --> 
    393402     </file> 
    394403 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/run_sub_test.sh

    r1729 r1734  
    1111cp ../default_param.py default_param.py 
    1212 
    13 cp ../iodef.xml iodef.xml 
    1413 
    1514# Black        0;30     Dark Gray     1;30 
     
    2322 
    2423 
    25 mv iodef.xml iodef.xml.bkp 
    2624 
    2725nb_proc=$(python sub_config.py 2>&1)  
     
    2927machine_name=jeanzay 
    3028 
    31 echo $nb_proc 
     29# echo $nb_proc 
    3230if [[ ($machine_name == irene) ]] 
    3331then 
     
    4644            echo "execution failed" 
    4745            rm -f iodef.xml 
    48             mv iodef.xml.bkp iodef.xml 
    4946            rm -f user_param.py 
    5047            rm -f default_param.py 
    5148            rm -f sub_config.py 
     49            rm -f sub_check.py 
    5250            exit 1234 
    5351    fi 
     
    5755fi 
    5856 
    59 python sub_check.py 
     57check_output=$(python sub_check.py 2>&1 >/dev/null) 
     58if [[ "$check_output" -ne 0 ]] 
     59then 
     60    echo "check.py failed" 
     61    rm -f iodef.xml 
     62    rm -f user_param.py 
     63    rm -f default_param.py 
     64    rm -f sub_config.py 
     65    rm -f sub_check.py 
     66    exit 1 
     67else 
     68    echo "check.py OK" 
     69fi 
     70 
    6071 
    6172rm -f iodef.xml 
    62 mv iodef.xml.bkp iodef.xml 
    6373rm -f user_param.py 
    6474rm -f default_param.py 
    6575rm -f sub_config.py 
     76rm -f sub_check.py 
  • XIOS/dev/dev_trunk_omp/GENERIC_TESTCASE/test_axis_algo/setup.py

    r1729 r1734  
    121121        dirpath = os.getcwd() 
    122122        foldername = os.path.basename(os.getcwd()) 
    123         print(foldername) 
    124123 
    125124 
     
    137136                g.write("import os\n") 
    138137                g.write("import sys\n") 
     138                g.write("import subprocess\n") 
    139139                g.write("def main():\n") 
    140140                g.write("       os.system(\'rm -f user_param.py\')\n") 
Note: See TracChangeset for help on using the changeset viewer.