[2963] | 1 | This folder contains all the files needed to run the Planetary Evolution Model (PEM). |
---|
| 2 | |
---|
[3349] | 3 | # launchPEM.sh: |
---|
[3096] | 4 | Bash script file to launch the chained simulation of PEM and PCM runs. |
---|
[3038] | 5 | The user has to specify: |
---|
[3108] | 6 | (i) n_mars_years, n_earth_years -> the number of Mars/Earth years to be simulated in total; |
---|
[3349] | 7 | (ii) nPCM_ini -> the number of initial PCM runs (at least 2); |
---|
[3394] | 8 | (iii) nPCM -> the number of PCM runs between each PEM run (usually 2); |
---|
[3556] | 9 | (iv) counting -> the counting method for the number of years to be simulated (0 = "only PEM runs count"; any other values = "PCM runs are taken into account"). The former option is the PEM default use; |
---|
| 10 | (v) mode -> the launching mode (0 = "processing scripts"; any other values = "submitting jobs"). The former option is usually used to process the script on a local machine while the latter is used to submit jobs on a supercomputer. |
---|
[3349] | 11 | The script can take an argument: |
---|
| 12 | - If there is no argument, then the script initiates a PEM simulation from scratch. |
---|
| 13 | - 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. |
---|
[3495] | 14 | To submit chained jobs, the script works with the job schedulers SLURM and PBS/TORQUE. |
---|
[2963] | 15 | |
---|
[3349] | 16 | # liblaunchPEM.sh: |
---|
| 17 | Library of bash functions used by the PEM launching script "launchPEM.sh". |
---|
| 18 | |
---|
[3394] | 19 | # PCMrun.job: |
---|
[3495] | 20 | Bash script file to submit a PCM job (with SLURM or PBS/TORQUE). The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processiong scripts" launching mode, the headers are naturally omitted. |
---|
[3349] | 21 | The path to source the arch file should be adapted to the machine. |
---|
[3495] | 22 | The name of the PCM executable file should be adapted. |
---|
| 23 | The execution command should also be adapted according to the set-up. |
---|
[2963] | 24 | |
---|
[3394] | 25 | # PEMrun.job: |
---|
[3495] | 26 | Bash script file to submit PEM job (with SLURM or PBS/TORQUE).The headers correspond to the ADASTRA supercomputer and should be changed for other machines and job schedulers. In case of "processiong scripts" launching mode, the headers are naturally omitted. |
---|
[3349] | 27 | The path to source the arch file should be adapted to the machine. |
---|
[3495] | 28 | The name of the PEM executable file and Reshaping executable file should be adapted. |
---|
| 29 | The PEM executable can have an optional argument which should be specified according to the set-up. This the job ID to make the PEM detect the job time limit. |
---|
[3349] | 30 | |
---|
[3038] | 31 | # run_PEM.def |
---|
| 32 | All the possible parameters to define a PEM run (read in "conf_pem.F90"). |
---|
[3096] | 33 | It needs to be included in "run_PCM.def" with "INCLUDEDEF=run_PEM.def". |
---|
[2963] | 34 | |
---|
[3038] | 35 | # obl_ecc_lsp.asc |
---|
[3579] | 36 | File describing orbital parameters for Mars from Laskar's data. It contains the Earth year and the corresponding obliquity, eccentricity and Ls of perihelion. |
---|
[3038] | 37 | |
---|
| 38 | # modify_startfi_orbit.sh: |
---|
[3093] | 39 | 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. |
---|
[3038] | 40 | |
---|
[3349] | 41 | # modify_startfi_var.sh: |
---|
| 42 | Bash script file to modify the value of a variable in a file "startfi.nc". |
---|
| 43 | |
---|
| 44 | # inipem_orbit.sh: |
---|
| 45 | Bash script file to modify the orbital parameters of a file "startfi.nc" according to the date set in the file "run_PEM.def". |
---|
| 46 | |
---|
[3088] | 47 | # concat_diagpem.sh: |
---|
[3093] | 48 | 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. |
---|
[3088] | 49 | |
---|
[3351] | 50 | # clean.sh: |
---|
[3579] | 51 | Bash script file to clean the folder after a PEM simulation and reset the initial starting files to prepare a new simulation. |
---|
[3351] | 52 | |
---|
[3460] | 53 | # multiple_exec.sh: |
---|
[3579] | 54 | Bash script file to execute multiple scripts in subdirectories. It is useful to launch multiple simulations at once. |
---|
[3460] | 55 | |
---|
| 56 | # visu_layering.py: |
---|
[3349] | 57 | Python script file to output the stratification data from the "startpem.nc" files. |
---|
| 58 | |
---|
[3460] | 59 | # visu_evol_layering.py: |
---|
| 60 | Python script file to output the stratification data over time from the "startpem.nc" files. |
---|
| 61 | |
---|
[3038] | 62 | Note: |
---|
| 63 | To run the chained simulation, be careful to have: |
---|
[3152] | 64 | (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."); |
---|
[3096] | 65 | (ii) the usual def files to run the PCM. "run.def" should be renamed in "run_PCM.def"; |
---|
[3093] | 66 | (iii the starting files ("startfi.nc" and "start.nc"). The former can be modified by "modify_startfi_orbit.sh"; |
---|
| 67 | (iv) some optional files. For example, "diagfi.def" and "diagpem.def". |
---|