Changeset 382 for branches


Ignore:
Timestamp:
03/21/23 18:50:57 (14 months ago)
Author:
dumas
Message:

Update GRISLI PMIP launch script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRISLIv3/lauching_area/go_GRISLI_PMIP.sh

    r367 r382  
    1111#geoplace="laure16" 
    1212 
    13 tmodelend="0." #"0." 
     13tmodelend="0." 
    1414tmodelbegin="-26000." 
    15 #tmodelbegin="-50000." 
    1615tmodellength="26000." 
    17 #tmodellength="50000." 
    1816runatmvar="0.25" 
    1917runpdd="2" 
    2018 
    2119parallel="no" # "yes or no?" 
     20proc_number="4" # number of processor used 
     21ppn_number=$proc_number # number of cpus (ppn) 
     22exename="Ant-40" 
     23 
     24queue="long"  # specify queue used : short, medium, long, xlong... 
     25 
     26# Files used 
     27grisli_run_file="Master-files/grisli.run.lsce"                        # grisli.run 
     28param_file="degla_PMIP_${geoplace}_param_list.dat"                    # param file 
     29TEMPS_NETCDF_file="Master-files/TEMPS-NETCDF-degla.dat"               # TEMPS-NETCDF.dat 
     30#module_choix_file="Master-files/module_choix-antar40-0.4-cycles.f90"  # module choix 
     31 
    2232 
    2333case ${geoplace} in 
     
    3040 
    3141#Revision number : 
    32 rev=`svn info | grep "Révision : " | awk '{print $2}'` 
     42rev=`svn info | grep "vision : " | awk '{print $2}'` 
    3343echo "Code revision svn "$rev 
    3444 
     
    109119echo $MODEL 
    110120 
    111 cp "Master-files/TEMPS-NETCDF-degla.dat" $MODEL"/Fichiers-parametres/TEMPS-NETCDF.dat" 
    112 cp "degla_PMIP_${geoplace}_param_list.dat" $RUNDIR"/bin/${geoplace}_param_list.dat" 
     121cp $TEMPS_NETCDF_file $MODEL"/Fichiers-parametres/TEMPS-NETCDF.dat" 
     122cp $param_file $RUNDIR"/bin/${geoplace}_param_list.dat" 
    113123 
    114 if [ $parallel = "yes" ]; then 
    115   cp "Master-files/grisli.run.openmp" $RUNDIR"/bin/grisli.run" 
    116 else 
    117   cp "Master-files/grisli.run" $RUNDIR"/bin/grisli.run" 
    118 fi 
     124cp $grisli_run_file $RUNDIR"/bin/grisli.run" 
    119125 
    120126cd $RUNDIR"/INPUT" 
     
    139145sed -i "s/RUNNAME/$namerun/" $RUNDIR"/bin/grisli.run" 
    140146sed -i "s/EXE_NAME/$exename/g" $RUNDIR"/bin/grisli.run" 
     147 
     148if [ $parallel = "yes" ]; then 
     149    sed -i "s/QUEUE/${queue}p/" $RUNDIR"/bin/grisli.run" 
     150    sed -i "s/PROC_NUMBER/$proc_number/" $RUNDIR"/bin/grisli.run" 
     151    sed -i "s/PPN_NUMBER/$ppn_number/" $RUNDIR"/bin/grisli.run" 
     152else 
     153    sed -i "s/QUEUE/$queue/" $RUNDIR"/bin/grisli.run" 
     154    sed -i "s/PROC_NUMBER/1/" $RUNDIR"/bin/grisli.run" 
     155    sed -i "s/PPN_NUMBER/1/" $RUNDIR"/bin/grisli.run" 
     156    sed -i "/export\ MKL_NUM_THREADS/d" $RUNDIR"/bin/grisli.run" 
     157    sed -i "/export\ OMP_NUM_THREADS/d" $RUNDIR"/bin/grisli.run" 
     158    sed -i "/export\ KMP_STACKSIZE/d" $RUNDIR"/bin/grisli.run" 
     159fi 
    141160 
    142161# Makefile: 
Note: See TracChangeset for help on using the changeset viewer.