Changeset 4986 for BOL/LMDZ_Setup_amaury


Ignore:
Timestamp:
Jun 17, 2024, 10:11:26 AM (5 months ago)
Author:
abarral
Message:

(WIP) various minor fixes
add spirit header in reb.sh, fix run cmd
fix auto number of procs in setup.sh

Location:
BOL/LMDZ_Setup_amaury
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/reb.sh

    r4958 r4986  
    3131#@JZ#SBATCH --output=post${type}%j.out  # nom du fichier de sortie
    3232#@JZ#SBATCH --error=post${type}%j.out   # nom du fichier d'erreur (ici en commun avec la sortie)
     33#@SP#Spirit
     34#@SP#SBATCH --job-name=Seq
     35#@SP#SBATCH --nodes=1
     36#@SP#SBATCH --ntasks-per-node=1
     37#@SP#SBATCH --time=00:30:00
     38#@SP#SBATCH --output=post${type}%j.out
     39#@SP#SBATCH --error=post${type}%j.out
     40#@ADS#Adastra
     41#@ADS#SBATCH --job-name=Seq
     42#@ADS#SBATCH --nodes=1
     43#@ADS#SBATCH --ntasks-per-node=1
     44#@ADS#SBATCH --time=00:30:00
     45#@ADS#SBATCH --output=post${type}%j.out
     46#@ADS#SBATCH --error=post${type}%j.out
    3347
    3448# on se place dans le repertoire de soumission
     
    5367
    5468  echo "Submitting the rebuild job $job"
    55   $RUNCMD "$job"
     69  $SUBMITCMD "$job"
    5670done
  • BOL/LMDZ_Setup_amaury/setup.sh

    r4980 r4986  
    2323  #  c/ #SBATCH --qos=qos_cpu-dev (this line is in script_SIMU, by default it is commented out)
    2424  #If you want to change "time", or "nday", but still run in "test" mode, modify the "if [ $debug = 1 ]...; fi" further below.
    25   testmode=n
     25  testmode="y"  # TODO revert
    2626
    2727  # Radiative code : "oldrad" or "rrtm" or "ecrad"
     
    3333  #   in order to re-run the initialisation job, which downloads the aerosol files and interpolates them)
    3434  aerosols="clim"
     35  aerosols="n"  # TODO revert when we fix/investigate the aerosols issue
    3536
    3637  # SURFACE/VEGETATION SCHEME
     
    4142  # - number: orchidee version number : only rev 7983 on branch _2_2, and 7994 on trunk, are available
    4243  veget="CMIP6"
    43   veget="none"  # TODO temp
     44
    4445  #AS : If you have installed the model with a given "veget" option, and you want to change it :
    4546  #   --> RECOMMENDED : re-install the model from scratch in a new TEST_PROD folder
     
    6667  #   With XIOS : adjust DEF/XMLfiles*/file*xml
    6768
    68   netcdf=0  # TODO set back to 0
     69  netcdf=0
    6970}
    7071
     
    120121
    121122  LIMIT="LIMIT"
    122 
    123   ######################################################################
    124   # Choix du nombre de processeurs
    125   # NOTES :
    126   # omp=8 by default (for Jean-Zay must be a divisor of 40 procs/node), but we need
    127   #   omp=1 for SPLA (only MPI parallelisation)
    128   #   omp=2 for veget=CMIP6 beacause of a bug in ORCHIDEE/src_xml/xios_orchidee.f90
    129   ######################################################################
    130   jm=$(echo "$resol" | cut -dx -f2)
    131   (( mpi = ( jm + 1 ) / 2 ))
    132   omp=8
    133   if [[ $aerosols = "spla" ]]; then omp=1; fi
    134   if [[ $veget = "CMIP6" && $xios = "y" ]]; then omp=2; fi
    135   if [[ $mpi -gt $NB_MPI_MAX ]]; then mpi=$NB_MPI_MAX; fi
    136   if [[ $omp -gt $NB_OMP_MAX ]]; then omp=$NB_OMP_MAX; fi
    137123
    138124  case $rad in
     
    196182     if [[ $ans != y ]]; then exit 1; fi
    197183  fi
     184
     185  ######################################################################
     186  # Choix du nombre de processeurs
     187  # NOTES :
     188  # omp=8 by default (for Jean-Zay must be a divisor of 40 procs/node), but we need
     189  #   omp=1 for SPLA (only MPI parallelisation)
     190  #   omp=2 for veget=CMIP6 beacause of a bug in ORCHIDEE/src_xml/xios_orchidee.f90
     191  ######################################################################
     192  jm=$(echo "$resol" | cut -dx -f2)
     193  (( mpi = ( jm + 1 ) / 2 ))
     194  omp=8
     195  if [[ $aerosols = "spla" ]]; then omp=1; fi
     196  if [[ $veget = "CMIP6" && $xios = "y" ]]; then omp=2; fi
     197  if [[ $mpi -gt $NB_MPI_MAX ]]; then mpi=$NB_MPI_MAX; fi
     198  if [[ $omp -gt $NB_OMP_MAX ]]; then omp=$NB_OMP_MAX; fi
    198199}
    199200
     
    456457
    457458  if [[ $testmode = "y" ]]; then
    458     sed -i'' -e "s/time=.*.$/time=00:30:00/" -e "s/#nday=1/nday=1/" -e "s/#@TESTQ//" "$SIMRUNTOPDIR/tmp_$SIM"
     459    sed -i'' -e "s/time=.*.$/time=00:10:00/" -e "s/#nday=1/nday=1/" -e "s/#@TESTQ//" "$SIMRUNTOPDIR/tmp_$SIM"
    459460  fi
    460461}
     
    710711source lmdz_env.sh
    711712
    712 # TODO Amaury: commented-out for now // /!\ check w/ Adriana: "groupe@cpu" never appears in seasonal.sh...
    713 ## Pour les post-traitements
    714 #sed -i'' -e "s/groupe@cpu/$groupe@cpu/" seasonal.sh
    715713local=$(pwd)
    716714
     
    769767   if [ "$aerosols" = "spla" ]; then
    770768     echo Your aerosol choice is "spla", so you need ERA 10m-winds interpolated on LMDZ grid
    771      echo Use script era2gcm_uv10m.sh 
     769     echo Use script era2gcm_uv10m.sh
    772770   fi
    773771else
     
    783781
    784782echo "To recompile the model :"
    785 echo "run the compile${sufiso}.sh script created in the present folder: ./compile${sufiso}.sh gcm " 
     783echo "run the compile${sufiso}.sh script created in the present folder: ./compile${sufiso}.sh gcm "
Note: See TracChangeset for help on using the changeset viewer.