Changeset 4956 for BOL/LMDZ_Setup_amaury/script_SIMU
- Timestamp:
- Jun 3, 2024, 1:06:29 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified BOL/LMDZ_Setup_amaury/script_SIMU ¶
r4955 r4956 19 19 20 20 set -ex 21 set +u # Amaury 06/24: for local use (no $SLURM_CPUS_PER_TASK) - should be removed if we ever rewrite this whole legacy script properly... 21 22 22 23 # Number of MPI processes : 23 24 ntasks=8 25 # number of OpenMP threads 26 nthreads=8 27 export OMP_NUM_THREADS=$nthreads 24 28 25 29 # 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 30 31 31 32 # private memory for each thread … … 133 134 if [ "$climato" = "0" ] ; then calend=gregorian ; else calend=earth_360d ; fi 134 135 bisextile=0 135 if [ $(( $year % 4 )) = 0 -a $calend = gregorian] ; then bisextile=1 ; fi136 if [[ $(( year % 4 )) = 0 && $calend = gregorian ]] ; then bisextile=1 ; fi 136 137 if [ $paran = 0 ] ; then 137 138 if [ "$calend" = "gregorian" ] ; then … … 211 212 fi 212 213 213 ## Ca doit etre la meme liste de fichiers rapatriee par setup.sh dans $LMDZ_I nit/SPLA_Init214 ## Ca doit etre la meme liste de fichiers rapatriee par setup.sh dans $LMDZ_INIT/SPLA_Init 214 215 ## et interpolee (setup.sh aussi) dans $SPLADIR 215 216 if [ $aerosols = spla ] ; then … … 244 245 set +e ; for t in stomate sechiba ; do cp $SIMUDIR/start_$t.$ym.nc ${t}_rest_in.nc ; done ; set -e 245 246 if [ "`grep RIVER_ROUTING orchidee.def |grep -i y`" ] ; then 246 set +e ; ln -s $LMDZ_I nit/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 . 247 248 cp $SIMUDIR/start_routing.$ym.nc routing_start.nc ; set -e 248 249 fi … … 258 259 echo "Autoinitialisation d'orchidee au besoin" 259 260 echo '#########################################################' 260 get="ln -s $LMDZ_I nit/"261 get="ln -s $LMDZ_INIT/" 261 262 for file in cartepente2d_15min.nc \ 262 263 lai2D.nc soils_param.nc soil_bulk_and_ph.nc alb_bg_modisopt_2D_ESA_v2.nc reftemp.nc ; do ${get}$file ; done … … 273 274 274 275 if [ $veget = 7994 ] ; then 275 get="ln -s $LMDZ_I nit/"276 get="ln -s $LMDZ_INIT/" 276 277 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 277 278 fi … … 306 307 echo '##################################################################' 307 308 308 time $ run$ntasks ./gcm.e > listing309 time $RUNCMD $ntasks ./gcm.e > listing 309 310 if [ ! -f restartphy.nc ] ; then 310 311 echo PROBLEME PAS DE FICHIER RESTARTPHY
Note: See TracChangeset
for help on using the changeset viewer.