Changeset 5030


Ignore:
Timestamp:
Jul 9, 2024, 9:50:38 AM (2 months ago)
Author:
abarral
Message:

update main.sh default tar
fix ntasks-per-node sed
remove test_ERAfiles_JeanZay.sh

Location:
BOL/LMDZ_Setup_amaury
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup_amaury/lmdz_env.sh

    r5014 r5030  
    112112      LMDZD="$root_dir/LMDZD"  # Where the sources will be downloaded and compiled
    113113      LMDZ_INIT="$root_dir/LMDZ_Init"  # Where to store shared files used for initialisation
    114       NB_MPI_MAX=33  # Max number of MPI cores (only for running simulations)
    115       NB_OMP_MAX=100  # Max number of OMP threads (only for running simulations)
     114      NB_MPI_MAX=2  # Max number of MPI cores (only for running simulations)
     115      NB_OMP_MAX=2  # Max number of OMP threads (only for running simulations)
    116116      NB_CORE_PER_NODE_MAX=0  # Max number of cores per node (real cores, not hyperthreading - only for running simulations, cluster-specific)
    117117      N_HYPERTHREADING=1  # How many hyperthreading threads per physical core
  • BOL/LMDZ_Setup_amaury/main.sh

    r4991 r5030  
    2626# Version of the tar file on https://lmdz.lmd.jussieu.fr/pub/src
    2727# Last "testing" version, thoroughly checked by the LMDZ team : contains LMDZ rev 4729 (2023-10-22)
    28 version="20240308.trunk" #!! DON'T CHANGE IT WITHOUT CHECKING WITH LMDZ TEAM !!
     28version="20240508.CM7" #!! DON'T CHANGE IT WITHOUT CHECKING WITH LMDZ TEAM !!
    2929svn=""                   #!! DON'T CHANGE IT WITHOUT CHECKING WITH LMDZ TEAM !!
    3030# CONTACT LMDZ Team :
     
    3434# Grid number of points IMxJMxLM
    3535resol="144x142x79"
    36 resol="32x32x39"  # TODO TEMP
    3736
    3837## Using XIOS for IOs: "-xios" (enabled) / "" (disabled)
  • BOL/LMDZ_Setup_amaury/setup.sh

    r5013 r5030  
    165165  # NOTES :
    166166  # omp=8 by default (for Jean-Zay must be a divisor of 40 procs/node), but we need
    167   #   omp=1 for SPLA (only MPI parallelisation)
    168   #   omp=2 for veget=CMIP6 beacause of a bug in ORCHIDEE/src_xml/xios_orchidee.f90
     167  # omp=1 for SPLA (only MPI parallelisation)
    169168  ######################################################################
    170169  jm=$(echo "$resol" | cut -dx -f2)
     
    172171  omp=8
    173172  if [[ $aerosols = "spla" ]]; then omp=1; fi
    174   if [[ $veget = "CMIP6" && $xios = "y" ]]; then omp=2; fi
    175173  if [[ $mpi -gt $NB_MPI_MAX ]]; then mpi=$NB_MPI_MAX; fi
    176174  if [[ $omp -gt $NB_OMP_MAX ]]; then omp=$NB_OMP_MAX; fi
    177175
    178176  # Compute how many mpi per node (required e.g. for Adastra)
     177  mpi_per_node=0
    179178  if [[ $NB_CORE_PER_NODE_MAX -gt 0 ]]; then
    180179    local N_omp_mt=1
     
    273272  ######################################################################
    274273
    275   # Choix du fichier traceur.def coherent avec l'option "aerosols"
     274  # Choix du fichier tracer.def coherent avec l'option "aerosols"
    276275  #  NOTE : Le nouveau tracer.def_nospla par defaut n'inclut pas Rn-Pb;
    277276  #             si on les veut, il faut utiliser ci-dessous; a la place, tracer_RN_PB.def
    278277  #---------------------------------------------------------------------
    279   # NB: Si on change de traceur.def (entre spla et nospla), il faut refaire l'etape "initialisation" (ce0l)?
    280   # Normalement les traceurs absents de start* files sont initialises=0 dans le code; verifier pour spla !
     278  # NB : Les traceurs absents de start* files sont initialises=0 dans le code
    281279  if [[ $aerosols = "spla" ]]; then
    282     # ancien traceur pour l instant
     280    # nouveau tracer.def (remplace "traceur.def")
    283281    cp DEF/tracer.def_spla DEF/tracer.def
    284282  elif [[ $phylmd = "lmdiso" ]]; then
    285     # nouveau traceur , déjà copié si 'y'
     283    # déjà copié si 'y'
    286284    cp DEF/tracer.def_nospla DEF/tracer.def
    287285  fi
     
    440438  -e "s/time=.*.$/time=$cput/" \
    441439  -e "s/ntasks=.*.$/ntasks=$mpi/" \
    442   -e "s/ntasks=.*.$/ntasks-per-node=$mpi_per_node/" \
     440  -e "s/ntasks-per-node=.*.$/ntasks-per-node=$mpi_per_node/" \
    443441  -e "s/cpus-per-task=.*.$/cpus-per-task=$omp/" \
    444442  -e "s/nthreads=.*./nthreads=$omp/" \
Note: See TracChangeset for help on using the changeset viewer.