Changeset 3108


Ignore:
Timestamp:
Oct 27, 2023, 6:00:07 PM (15 months ago)
Author:
jbclement
Message:

PEM:
Addition of the possibility to ask for a number of Mars years to be simulated in total (previously it was only in Earth years).
JBC

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/changelog.txt

    r3106 r3108  
    124124    - Correction of a bug when running with ifort, XIOS and no sub-slopes. If compiled with ifort, the 'Reshape' program cashed because of sub-slopes variables were written in the XIOS output but not filled. A new file definition without sub-slopes can be chosen in the xml file to avoid this issue.
    125125    - Addition in the 'Reshape' program of a check to remove the output files if they exist to prevent a crash.
     126
     127== 27/10/2023 == JBC
     128Addition of the possibility to ask for a number of Mars years to be simulated in total (previously it was only in Earth years).
  • trunk/LMDZ.MARS/deftank/pem/README

    r3096 r3108  
    44  Bash script file to launch the chained simulation of PEM and PCM runs.
    55  The user has to specify:
    6       (i)   n_earth_years -> the number of Earth years to be simulated in total;
     6      (i)   n_mars_years, n_earth_years -> the number of Mars/Earth years to be simulated in total;
    77      (ii)  nPCM -> the number of PCM calls between PEM runs (usually nPCM=2);
    88      (iii) exePEM -> the name of executable file for the PEM run;
  • trunk/LMDZ.MARS/deftank/pem/launch_pem.sh

    r3106 r3108  
    2121LC_NUMERIC=en_US.UTF-8
    2222
    23 #------- Modify here the number of Earth years to be simulated ---------
    24 ## set the number of years:
    25 n_earth_years=1000000
     23#---------- Modify here the number of years to be simulated ------------
     24## set the number of years, either Martian or Earth years:
     25n_mars_years=1000000
     26#n_earth_years=1000000
    2627
    2728#---------------- Modify here the number of PCM calls ------------------
     
    9394convert_years=$(echo "$myear/$eyear" | bc -l)
    9495convert_years=$(printf "%.4f" $convert_years) # Rounding to the 4th decimal to respect the precision of Martian year
    95 n_myear=$(echo "($n_earth_years/$convert_years + 0.999999)/1" | bc) # Ceiling of n_earth_years/convert_years
    96 echo "Number of years to simulate: $n_earth_years Earth years = $n_myear Martian years."
     96if [ -v n_mars_years ] && [ ! -z "$n_mars_years" ]; then
     97    n_myear=$n_mars_years
     98    echo "Number of years to be simulated: $n_myear Martian years."
     99elif [ -v n_earth_years ] && [ ! -z "$n_earth_years" ]; then
     100    n_myear=$(echo "($n_earth_years/$convert_years + 0.999999)/1" | bc) # Ceiling of n_earth_years/convert_years
     101    echo "Number of years to be simulated: $n_earth_years Earth years = $n_myear Martian years."
     102else
     103    echo "No number of years to be simulated has been set!"
     104    exit 1
     105fi
    97106i_myear=0
    98107iPEM=1
Note: See TracChangeset for help on using the changeset viewer.