Quick Install and Run Mars PEM
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.
For a glimpse at all the possible makelmdz_fcm options and their meanings, run:
./makelmdz_fcm -h
and/or check the dedicated makelmdz_fcm page.
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