Ignore:
Timestamp:
Jun 3, 2024, 1:06:29 PM (2 months ago)
Author:
abarral
Message:

(WIP) continue refactoring setup.sh
fix env vars

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/script_SIMU

    r4955 r4956  
    1919
    2020set -ex
     21set +u  # Amaury 06/24: for local use (no $SLURM_CPUS_PER_TASK) - should be removed if we ever rewrite this whole legacy script properly...
    2122
    2223# Number of MPI processes :
    2324ntasks=8
     25# number of OpenMP threads
     26nthreads=8
     27export OMP_NUM_THREADS=$nthreads
    2428
    2529# For Jean-Zay (replacing the next 3 lines, commented out)
    26 export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
    27 ## number of OpenMP threads 
    28 ##nthreads=8
    29 ##export OMP_NUM_THREADS=$nthreads
     30#export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
    3031
    3132# private memory for each thread
     
    133134if [ "$climato" = "0" ] ; then calend=gregorian ; else calend=earth_360d ; fi
    134135bisextile=0
    135 if [ $(( $year % 4 )) = 0 -a $calend = gregorian ] ; then bisextile=1 ; fi
     136if [[ $(( year % 4 )) = 0 && $calend = gregorian ]] ; then bisextile=1 ; fi
    136137if [ $paran = 0 ] ; then
    137138   if [ "$calend" = "gregorian" ] ; then
     
    211212  fi
    212213
    213   ## Ca doit etre la meme liste de fichiers rapatriee par setup.sh dans $LMDZ_Init/SPLA_Init
     214  ## Ca doit etre la meme liste de fichiers rapatriee par setup.sh dans $LMDZ_INIT/SPLA_Init
    214215  ## et interpolee (setup.sh aussi) dans $SPLADIR
    215216  if [ $aerosols = spla ] ; then
     
    244245    set +e ; for t in stomate sechiba ; do cp $SIMUDIR/start_$t.$ym.nc ${t}_rest_in.nc ; done ; set -e
    245246    if [ "`grep RIVER_ROUTING orchidee.def |grep -i y`" ] ; then
    246       set +e ; ln -s $LMDZ_Init/routing_simple.nc . ; ln -s $LMDZ_Init/routing.nc .
     247      set +e ; ln -s $LMDZ_INIT/routing_simple.nc . ; ln -s $LMDZ_INIT/routing.nc .
    247248               cp $SIMUDIR/start_routing.$ym.nc routing_start.nc ; set -e
    248249    fi
     
    258259       echo "Autoinitialisation d'orchidee au besoin"
    259260       echo '#########################################################'
    260        get="ln -s $LMDZ_Init/"
     261       get="ln -s $LMDZ_INIT/"
    261262       for file in cartepente2d_15min.nc \
    262263          lai2D.nc soils_param.nc soil_bulk_and_ph.nc alb_bg_modisopt_2D_ESA_v2.nc reftemp.nc ; do ${get}$file ; done
     
    273274
    274275      if [ $veget = 7994 ] ; then
    275          get="ln -s $LMDZ_Init/"
     276         get="ln -s $LMDZ_INIT/"
    276277         for file in ndep_nhx.nc ndep_noy.nc nfert_cropland.nc nfert_pasture.nc nmanure_cropland.nc nmanure_pasture.nc bnf.nc ; do ${get}$file ; done
    277278      fi
     
    306307echo '##################################################################'
    307308
    308 time $run $ntasks ./gcm.e > listing
     309time $RUNCMD $ntasks ./gcm.e > listing
    309310if [ ! -f restartphy.nc ] ; then
    310311echo PROBLEME PAS DE FICHIER RESTARTPHY
Note: See TracChangeset for help on using the changeset viewer.