Changeset 3351 for trunk


Ignore:
Timestamp:
May 31, 2024, 3:09:58 PM (7 months ago)
Author:
jbclement
Message:

PEM:

  • Updates for several scripts in the deftank.
  • Addition of the bash script "clean.sh" to clean a folder after a PEM simulation.

JBC

Location:
trunk/LMDZ.COMMON/libf/evolution
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/abort_pem_mod.F90

    r3076 r3351  
    4848write(lunout,*) 'Reason = ', message
    4949if (ierr == 0) then
    50     write(lunout,*) 'Everything is cool'
     50    write(lunout,*) 'Everything is cool!'
    5151    stop
    5252else
    53     write(lunout,*) 'Houston, we have a problem ', ierr
     53    write(lunout,*) 'Houston, we have a problem, ierr =', ierr
    5454    stop 1
    5555endif
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3349 r3351  
    337337  - "jobPEM.slurm" which is the SLURM job script for the PEM used as a template by the script.
    338338More info in the "README" of the deftank.
     339
     340== 31/05/2024 == JBC
     341- Updates for several scripts in the deftank.
     342- Addition of the bash script "clean.sh" to clean a folder after a PEM simulation.
  • trunk/LMDZ.COMMON/libf/evolution/deftank/README

    r3349 r3351  
    4141  Bash script file to concatenate along the variable 'Time' all the "diagpem.nc" files of the PEM into one NetCDF file. 'Time' is re-indexed with the numbering of Martian years simulated by the PEM run.
    4242
     43# clean.sh:
     44  Bash script file to clean the folder after a PEM simulation.
     45
    4346# output_layering.py:
    4447  Python script file to output the stratification data from the "startpem.nc" files.
  • trunk/LMDZ.COMMON/libf/evolution/deftank/inipem_orbit.sh

    r3210 r3351  
    3232
    3333# Get the new values for the orbital parameters
    34 yearlask=$(echo "$eyears_bp_ini" | bc -l)
     34yearlask=$(echo "$eyears_bp_ini/1000." | bc -l)
    3535found=false
    3636read -r y1 obl1 ecc1 lsp1 < "$orb_data"
  • trunk/LMDZ.COMMON/libf/evolution/deftank/jobPCM.slurm

    r3349 r3351  
    66### Number of Nodes to use
    77#SBATCH --nodes=1
    8 #SBATCH --ntasks-per-node=12
     8#SBATCH --ntasks-per-node=24
    99#SBATCH --cpus-per-task=4
    1010#SBATCH --threads-per-core=1 # --hint=nomultithread
    1111###SBATCH --exclusive
    1212#SBATCH --output=jobPCM_%A.out
    13 #SBATCH --time=10:00:00
     13#SBATCH --time=12:00:00
    1414
    15 # A few parameters that might need be changed depending on your setup:
    16 # Path to the arch.env to source
     15# A few parameters that might need to be changed depending on your setup
     16# Path to the arch.env to source:
    1717source ../trunk/LMDZ.COMMON/arch.env
    1818
     
    2121export OMP_STACKSIZE=400M
    2222
     23# Name of executable for the PCM:
     24exePCM="gcm_64x48x32_phymars_para.e"
     25########################################################################
     26
     27
     28echo "Run PCM $iPCM is starting."
    2329read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    2430cp run_PCM.def run.def
     31srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} $exePCM > out_runPCM${iPCM} 2>&1
    2532
    26 echo "Run PCM $iPCM is starting."
    27 ########################################################################
    28 srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} gcm_32x24x26_phymars_para.e > out_runPCM${iPCM} 2>&1
    29 ########################################################################
    30 
    31 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool" ]; then # Check if it ended abnormally
     33if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool!" ]; then # Check if it ended abnormally
    3234    echo "Error: the run PCM $iPCM crashed!"
    3335    echo "Be careful: there may be dependent jobs remaining in the SLURM queue with status 'DependencyNeverSatisfied'! You can cancel them by executing the script \"kill_launchPEM.sh\"."
  • trunk/LMDZ.COMMON/libf/evolution/deftank/jobPEM.slurm

    r3349 r3351  
    11#!/bin/bash
    2 #SBATCH --job-name=jobPEM2
     2#SBATCH --job-name=jobPEM1
    33#SBATCH --account=cin0391
    44### GENOA nodes accommodate 96 cores
     
    1111###SBATCH --exclusive
    1212#SBATCH --output=jobPEM_%A.out
    13 #SBATCH --time=1:00:00
     13#SBATCH --time=24:00:00
    1414
    15 # A few parameters that might need be changed depending on your setup:
    16 # Path to the arch.env to source
     15# A few parameters that might need to be changed depending on your setup
     16# Path to the arch.env to source:
    1717source ../trunk/LMDZ.COMMON/arch.env
    1818
    19 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
    20 cp run_PEM.def run.def
     19# Name of executable for the PEM:
     20exePEM="pem_64x48x32_phymars_seq.e"
     21
     22# Name of executable for reshaping PCM data with XIOS:
     23exeReshape="reshape_XIOS_output_64x48x32_phymars_seq.e"
     24########################################################################
     25
    2126
    2227echo "Reshaping PCM data with XIOS is starting."
    23 ########################################################################
    24 ./reshape_XIOS_output_32x24x26_phymars_seq.e
    25 ########################################################################
    26 
     28./$exeReshape
    2729if [ ! -f "data_PCM_Y1.nc" ] || [ ! -f "data_PCM_Y2.nc" ]; then # Check if it ended abnormally
    2830    echo "Error: the reshaping executable crashed!"
    2931    exit 1
    3032fi
     33
    3134echo "Run PEM $iPEM is starting."
    32 ########################################################################
    33 ./pem_32x24x26_phymars_seq.e > out_runPEM${iPEM} 2>&1
    34 ########################################################################
    35 
    36 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPEM${iPEM} | grep -iq "so far, so good" ]; then # Check if it ended abnormally
     35read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt
     36cp run_PEM.def run.def
     37./$exePEM > out_runPEM${iPEM} 2>&1
     38if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPEM${iPEM} | grep -iq "so far, so good!" ]; then # Check if it ended abnormally
    3739    echo "Error: the run PEM $iPEM crashed!"
    3840    exit 1
Note: See TracChangeset for help on using the changeset viewer.