Difference between revisions of "Quick Install and Run Mars PEM"

From Planets
Jump to: navigation, search
Line 40: Line 40:
  
 
Choices of parameters (run_PEM.def) => advanced topic
 
Choices of parameters (run_PEM.def) => advanced topic
 +
 +
 +
[[Category:Planetary-Evolution-Model]]

Revision as of 15:57, 12 May 2023

How to install the model

To download the model you'll need to follow exactly the same step as dowloading the martian model. You can have a look at the section Quick Install and Run of Mars Model and follow the "Prerequisites: Tools and Libraries" steps.

The PEM is dowlnload alongside with the LMDZ.COMMON repository. The Fortran code of the PEM is in the following directory : trunk/LMDZ.COMMON/libf/evolution/ The main program is in the file pem.F90

Compiling the test case

To compile the PEM at the sought resolution, run (in LMDZ.COMMON):

./makelmdz_fcm -arch local -p mars -d 64x48x54 -j 8 pem

Here, we assume that you have generated the arch-local.* files as per what is suggested in the previous section. The options for makelmdz_fcm used here imply:

  • -p mars: the PEM will use the "mars" physics package
  • -d 64x48x54: the PEM grid will be 64x48 in longitude x latitude, with 54 vertical levels.

Upon successful compilation, the executable pem_64x48x29_phymars_seq.e should be generated in the bin subdirectory.

To run the PEM you'll also need a valid PCM, you can compile it using a similar command:

./makelmdz_fcm -arch local -p mars -parallel mpi_omp -io XIOS -d 64x48x54 -j 8 gcm

To run the PEM you'll also need a tool (reshape_xios_output) that will e explained later, you can compile it using a similar command:

./makelmdz_fcm -arch local -p mars -d 64x48x54 -j 8 reshape_xios_output

run_pem1

xml files

reshape_xios_output

Input output

Choices of parameters (run_PEM.def) => advanced topic