[2532] | 1 | Making initial condition files for icosa_lmdz.exe from |
---|
| 2 | an LMDZ start_archive.nc file |
---|
| 3 | |
---|
| 4 | What you need to do/know before: |
---|
| 5 | --------------------------- |
---|
| 6 | Run a dynamico simulation (with startphy_file=false for example) with the desired resolution to get |
---|
| 7 | start.nc and startfi.nc. These files will be used as reference (rename as *_ref.nc) in the script. |
---|
[2941] | 8 | You can use the files named *_no_start to have an example of files to run without startfiles |
---|
[2532] | 9 | |
---|
| 10 | Job_mpi is the file you need to run start_archive2icosa on Occigen |
---|
| 11 | |
---|
| 12 | Warning: the input start_archive.nc file must include SSO parameters in this version, which is only available with a modified start2archive: start2archive_SSO |
---|
| 13 | |
---|
| 14 | This script is currently under development and still needs to be finalized. |
---|
| 15 | So you must be careful to adapt the script to your own needs and replace hardcoded variables. |
---|
| 16 | Any suggestion for improvement is welcome. |
---|
| 17 | |
---|
| 18 | In a nutshell: |
---|
| 19 | -------------- |
---|
| 20 | 1) input file start_archive.nc needs some minor adaptations: |
---|
[2813] | 21 | - variable "nivsigs" needs be renamed "sigs" (XIOS requires CF-compliant files) (RV: No neeeded anymore) |
---|
[2532] | 22 | ncrename -vnivsigs,sigs start_archive.nc |
---|
| 23 | - input file start_archive.nc need be converted to NetCDF4 format |
---|
[2813] | 24 | nccopy -k 4 start_archive.nc start_archive_nc4.nc |
---|
[2532] | 25 | 2) script "compile" can be used to compile main tool start_archive2icosa.f90 |
---|
| 26 | as well as rearrange_startphy.f90 |
---|
| 27 | 3) to run, start_archive2icosa needs input files: |
---|
| 28 | - "start_archive_nc4.nc" : from step 1 |
---|
| 29 | - "start_icosa_ref.nc" : a start.nc file from an icosa_lmdz.exe run (contains |
---|
| 30 | all the necessary information about the icosaedral grid at that resolution) |
---|
| 31 | - "startphy_icosa_ref.nc" : a startfi.nc file from an icosa_lmdz.exe run (contains |
---|
| 32 | all the necessary information about colums from physics) |
---|
| 33 | - "surface_nc4.nc" : Mars topography file (also needs to be in NetCDF4 format) |
---|
| 34 | - "iodef.xml" : information about field names and grids for XIOS |
---|
| 35 | NB: interpolation of HR topography requires lots of memory; see e.g. job_mpi |
---|
| 36 | job script where 2 nodes (56 cores) are requested but only 28 processes |
---|
| 37 | are run. |
---|
| 38 | 4) start_archive2icosa outputs files "start_icosa_prefinalize.nc" and "startfi_prefinalize.nc" |
---|
| 39 | require a couple of extra modifications. Script "icosa_finalize.bash" does |
---|
| 40 | the required changes and generates files "start_icosa.nc" and "startfi.nc" that |
---|
| 41 | can be used as inputs by icosa_lmdz.exe |
---|
| 42 | 5) When using these start one must add in run_icosa.def the extra flag |
---|
| 43 | etat0_start_file_colocated = true |
---|
| 44 | |
---|
| 45 | Additional comments: |
---|
| 46 | -------------------- |
---|
| 47 | - script "compile" assumes XIOS is to be found in "/scratch/cnt0027/lmd1167/adelavois/models/code/XIOS" |
---|
| 48 | to be adapted to your own settings |
---|
| 49 | - "nccopy" is a standard netcdf tool available via e.g.: |
---|
| 50 | module load intel/17.0 intelmpi/2017.0.098 hdf5/1.8.17 netcdf/4.4.0_fortran-4.4.2 |
---|
| 51 | - "nco" tools (ncrename, ncks, ...) are available via e.g.: |
---|
| 52 | module load intel/17.0 openmpi/intel/2.0.1 hdf5/1.8.17 netcdf/4.4.0_fortran-4.4.2 nco/4.4.6 |
---|
| 53 | - in start_archive2icosa.f90, rearrange_startphy.f90, iodef.xml and |
---|
| 54 | icosa_finalize.bash input/output file names are hard-coded. |
---|
| 55 | Modify/adapt with caution! |
---|