1 | This folder contains all the files needed to run the Planetary Evolution Model (PEM). |
---|
2 | |
---|
3 | # launchPEM.sh: |
---|
4 | Bash script file to launch the chained simulation of PEM and PCM runs. |
---|
5 | The user has to specify: |
---|
6 | (i) n_mars_years, n_earth_years -> the number of Mars/Earth years to be simulated in total; |
---|
7 | (ii) nPCM_ini -> the number of initial PCM runs (at least 2); |
---|
8 | (iii) nPCM -> the number of PCM runs between each PEM run (usually 2); |
---|
9 | (iv) dim -> the dimension of the model (1 for 1D, any other values stand for 3D). |
---|
10 | The script can take an argument: |
---|
11 | - If there is no argument, then the script initiates a PEM simulation from scratch. |
---|
12 | - If the argument is 're', then the script relaunches an existing PEM simulation. It will ask for parameters to know the starting point that you want to. |
---|
13 | The script works only with the job scheduler SLURM to submit chained jobs. |
---|
14 | |
---|
15 | # liblaunchPEM.sh: |
---|
16 | Library of bash functions used by the PEM launching script "launchPEM.sh". |
---|
17 | |
---|
18 | # PCMrun.job: |
---|
19 | Bash script file to submit a PCM job (with SLURM or PBS/TORQUE). The name of the PCM executable file should be adapted. The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of 1D, the headers are naturally omitted. |
---|
20 | The path to source the arch file should be adapted to the machine. |
---|
21 | The execution line should also be adapted according to the set-up. |
---|
22 | |
---|
23 | # PEMrun.job: |
---|
24 | Bash script file to submit PEM job (with SLURM or PBS/TORQUE). The name of the PEM executable file and Reshaping executable file should be adapted. The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of 1D, the headers are naturally omitted. |
---|
25 | The path to source the arch file should be adapted to the machine. |
---|
26 | The execution line should also be adapted according to the set-up. |
---|
27 | The PEM executable can have an optional argument to specify the SLURM job ID in order to detect the job time limit and deal with it. |
---|
28 | |
---|
29 | # run_PEM.def |
---|
30 | All the possible parameters to define a PEM run (read in "conf_pem.F90"). |
---|
31 | It needs to be included in "run_PCM.def" with "INCLUDEDEF=run_PEM.def". |
---|
32 | |
---|
33 | # obl_ecc_lsp.asc |
---|
34 | File describing orbital parameters for Mars from Laskar data. It contains the Earth year and the corresponding obliquity, eccentricity and Ls of perihelion. |
---|
35 | |
---|
36 | # modify_startfi_orbit.sh: |
---|
37 | Bash script file to modify orbital parameters in the file "startfi.nc" (obliquity, eccentricity, Ls perihelion and possibly initial Ls). They should be consistent with Laskar's data in "obl_ecc_lsp.asc" to start a chained simulation at a specific date. |
---|
38 | |
---|
39 | # modify_startfi_var.sh: |
---|
40 | Bash script file to modify the value of a variable in a file "startfi.nc". |
---|
41 | |
---|
42 | # inipem_orbit.sh: |
---|
43 | Bash script file to modify the orbital parameters of a file "startfi.nc" according to the date set in the file "run_PEM.def". |
---|
44 | |
---|
45 | # concat_diagpem.sh: |
---|
46 | 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. |
---|
47 | |
---|
48 | # clean.sh: |
---|
49 | Bash script file to clean the folder after a PEM simulation. |
---|
50 | |
---|
51 | # multiple_exec.sh: |
---|
52 | Bash script to execute multiple scripts in subdirectories, useful to launch multiple simulations at once. |
---|
53 | |
---|
54 | # visu_layering.py: |
---|
55 | Python script file to output the stratification data from the "startpem.nc" files. |
---|
56 | |
---|
57 | # visu_evol_layering.py: |
---|
58 | Python script file to output the stratification data over time from the "startpem.nc" files. |
---|
59 | |
---|
60 | Note: |
---|
61 | To run the chained simulation, be careful to have: |
---|
62 | (i) the xml files for XIOS. There should be "iodef.xml", "context_lmdz_physics.xml", "file_def_physics_mars.xml" and "field_def_physics_mars.xml" which can be found in the planetary deftank folder. In "context_lmdz_physics.xml", the line for Xdiurnalave should be activated (enabled=".true."); |
---|
63 | (ii) the usual def files to run the PCM. "run.def" should be renamed in "run_PCM.def"; |
---|
64 | (iii the starting files ("startfi.nc" and "start.nc"). The former can be modified by "modify_startfi_orbit.sh"; |
---|
65 | (iv) some optional files. For example, "diagfi.def" and "diagpem.def". |
---|