Changeset 374 for branches


Ignore:
Timestamp:
03/17/23 18:49:28 (14 months ago)
Author:
dumas
Message:

Update go_ant40_cycle.sh with on general grisli.run.lsce for sequential and parallel runs

Location:
branches/GRISLIv3/lauching_area
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/GRISLIv3/lauching_area/Master-files/grisli.run.openmp_ant40

    r229 r374  
    2323EXEDIR="EXEREP" 
    2424 
    25  
     25rm Ant-40 
    2626echo "Grisli is being compiled..." 
    2727cd $MODEL 
  • branches/GRISLIv3/lauching_area/Master-files/grisli.run_ant40

    r229 r374  
    44#PBS -N RUNNAME 
    55# Specify batch queue 
    6 #PBS -q medium 
     6#PBS -q longp 
     7#PBS -v BATCH_NUM_PROC_TOT=4 
     8#PBS -l nodes=1:ppn=4 
    79# Specify execution shell 
    810##PBS -S /bin/bash 
     
    1214#PBS -m e -M christophe.dumas@lsce.ipsl.fr 
    1315 
     16export MKL_NUM_THREADS=4 
     17export OMP_NUM_THREADS=4 
     18export KMP_STACKSIZE=16000000 #2048000000 # KMP_STACKSIZE remplace OMP_STACKSIZE avec ifort 
     19 
    1420module load netcdf/4 
    15  
    1621 
    1722MODEL="SOURCESREP" 
    1823EXEDIR="EXEREP" 
    1924 
    20  
     25rm Ant-40 
    2126echo "Grisli is being compiled..." 
    2227cd $MODEL 
  • branches/GRISLIv3/lauching_area/go_ant40_cycle.sh

    r373 r374  
    1515 
    1616parallel="no" # "yes or no?" 
     17proc_number="4" # number of processor used 
     18ppn_number=$proc_number # number of cpus (ppn) 
     19exename="Ant-40" 
     20 
     21queue="long"  # specify queue used : short, medium, long, xlong... 
     22 
     23# Files used 
     24grisli_run_file="Master-files/grisli.run.lsce"                        # grisli.run 
     25param_tsai_file="../Param/anteis1_param_list_Cyc-Tsai.dat"            # param file Tsai 
     26param_schoof_file="../Param/anteis1_param_list_Cyc-Scho.dat"          # param file Schoof 
     27TEMPS_NETCDF_file="Master-files/anteis1_TEMPS-NETCDF-cycle.dat"       # TEMPS-NETCDF.dat 
     28module_choix_file="Master-files/module_choix-antar40-0.4-cycles.f90"  # module choix 
     29 
    1730 
    1831#Revision number : 
    19 rev=`svn info | grep "Révision : " | awk '{print $2}'` 
     32rev=`svn info | grep "vision : " | awk '{print $2}'` 
    2033echo "Code revision svn "$rev 
    2134 
     
    113126echo $MODEL 
    114127 
    115 #cp "../Master-files/Makefile" $MODEL"/Makefile" 
    116 #cp "../Master-files/anteis1_param_list.dat" $RUNDIR"/bin/anteis1_param_list.dat" 
    117 cp "Master-files/anteis1_TEMPS-NETCDF-cycle.dat" $MODEL"/Fichiers-parametres/TEMPS-NETCDF.dat" 
    118 cp "Master-files/module_choix-antar40-0.4-cycles.f90" $MODEL"/Ant40_files/module_choix-antar40-0.4.f90" 
     128 
     129cp $TEMPS_NETCDF_file $MODEL"/Fichiers-parametres/TEMPS-NETCDF.dat" 
     130cp $module_choix_file $MODEL"/Ant40_files/module_choix-antar40-0.4.f90" 
    119131if [ $gr_select = "1" ] ; then 
    120   cp "../Param/anteis1_param_list_Cyc-Tsai.dat" $RUNDIR"/bin/anteis1_param_list.dat" 
     132  cp $param_tsai_file $RUNDIR"/bin/anteis1_param_list.dat" 
    121133elif [ $gr_select = "2" ] ; then 
    122   cp "../Param/anteis1_param_list_Cyc-Scho.dat" $RUNDIR"/bin/anteis1_param_list.dat" 
    123 fi 
    124  
    125 if [ $parallel = "yes" ]; then 
    126   cp "Master-files/grisli.run.openmp_ant40" $RUNDIR"/bin/grisli.run" 
    127 else 
    128   cp "Master-files/grisli.run_ant40" $RUNDIR"/bin/grisli.run" 
    129 fi 
     134  cp $param_schoof_file $RUNDIR"/bin/anteis1_param_list.dat" 
     135fi 
     136 
     137cp $grisli_run_file $RUNDIR"/bin/grisli.run" 
    130138 
    131139cd $RUNDIR"/INPUT" 
     
    147155sed -i "s|EXEREP|$RUNDIR\/bin|" $RUNDIR"/bin/grisli.run" 
    148156sed -i "s/RUNNAME/$namerun/" $RUNDIR"/bin/grisli.run" 
     157sed -i "s/EXE_NAME/$exename/g" $RUNDIR"/bin/grisli.run" 
     158 
     159if [ $parallel = "yes" ]; then 
     160    sed -i "s/QUEUE/${queue}p/" $RUNDIR"/bin/grisli.run" 
     161    sed -i "s/PROC_NUMBER/$proc_number/" $RUNDIR"/bin/grisli.run" 
     162    sed -i "s/PPN_NUMBER/$ppn_number/" $RUNDIR"/bin/grisli.run" 
     163else 
     164    sed -i "s/QUEUE/$queue/" $RUNDIR"/bin/grisli.run" 
     165    sed -i "s/PROC_NUMBER/1/" $RUNDIR"/bin/grisli.run" 
     166    sed -i "s/PPN_NUMBER/1/" $RUNDIR"/bin/grisli.run" 
     167    sed -i "/export\ MKL_NUM_THREADS/d" $RUNDIR"/bin/grisli.run" 
     168    sed -i "/export\ OMP_NUM_THREADS/d" $RUNDIR"/bin/grisli.run" 
     169    sed -i "/export\ KMP_STACKSIZE/d" $RUNDIR"/bin/grisli.run" 
     170fi 
    149171 
    150172# Makefile: 
Note: See TracChangeset for help on using the changeset viewer.