Changes between Version 12 and Version 13 of IPSLCM6/MOSAIX
- Timestamp:
- 12/12/18 16:57:22 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IPSLCM6/MOSAIX
v12 v13 1 === MOSAIX === 1 = MOSAIX = 2 [[PageOutline]] 2 3 3 4 MOSAIX is a small set of fortran routines, bash scripts, python scripts and xml files allowing to generate coupling weights for IPSL Earth System Model. It is under development, and presently not used by the production runs. It aims to replace the old MOSAIC software. It uses XIOS as a library to compute weights. In the present state, it can handle ORCA, LMDZ lon/lat and DYNAMICO grids. … … 30 31 31 32 == Requirements == 33 * Fortran compiler, C++ compiler, MPI. 32 34 * A working [[http://forge.ipsl.jussieu.fr/ioserver|XIOS]] library. Revision 1615 is known to work. 33 35 * fcm version 1.2 34 36 * NetCDF fortran librairies. See [[http://forge.ipsl.jussieu.fr/ioserver|XIOS]] for a suitable version. 35 * Python, version>3.6 with [[http://unidata.github.io/netcdf4-python/|netCDF4]] and [[http://www.numpy.org|numpy]] modules. Python version>2.7 mights work, but has not been tested recently. 37 * Python, version>=3.6 with [[http://unidata.github.io/netcdf4-python/|netCDF4]] and [[http://www.numpy.org|numpy]] modules. Python version>=2.7 mights work, but has not been tested recently. 38 * Bash version>=4. 36 39 * [[http://nco.sourceforge.net|NCO]]. Version 4.6.0 is known to work. 37 40 … … 43 46 * Weight files {{{rmp_*}}}. Should have a rather explicit name. 44 47 * Diagnostic file used for debug {{{dia_*.nc}}} for each rmp file, except for runoff and calving. Debug information are directly in weight files in this last case. 45 * Grid description file for OASIS-MCT {{{grids.nc}}}, {{{areas.nc}}} and {{{masks.nc}}} 48 * Grid description file for OASIS-MCT {{{grids.nc}}}, {{{areas.nc}}} and {{{masks.nc}}}. 46 49 * A file containing the fraction of ocean in each atmosphere grid box. For instance {{{ICO40_grid_maskFrom_eORCA1.2.nc}}}. 47 * A README file. Include a checksum for each generated files.50 * A README file. Includes a checksum for each generated files. 48 51 49 52 == Scripts and codes == … … 55 58 * '''update_xml.py'''. Python script used to perform on the fly editing of xml files. Used by {{{CreateWeights.bash}}}. more information with {{{python update_xml.py -h}}}. 56 59 57 * '''iodef_atm_to_oce.xml''' and '''iodef_oce_to_atm.xml'''. xml files read by {{{interpol.f90}}}. Th is fileare edited by {{{update_xml.py}}}.60 * '''iodef_atm_to_oce.xml''' and '''iodef_oce_to_atm.xml'''. xml files read by {{{interpol.f90}}}. These files are edited by {{{update_xml.py}}}. 58 61 59 62 * '''MOSAIX/src/MOSAIX/interpol.f90'''. Fortran source using the XIOS library. … … 93 96 * ''oorc''. ORCA grid at ''T'' point. Masked on land, duplicated (from periodicity) point masked, with area equal 1. 94 97 95 == Generating in itial grid file==98 == Generating input grid files == 96 99 97 100 ''' Generating icosahedral grid in double precision using XIOS:''' … … 101 104 * File {{{context_lmdz.xml}}} : 102 105 103 {{{ 106 {{{#!xml 104 107 ..... 105 108 <domain_definition> … … 107 110 <domain id="dom_glo_p8" domain_ref="dom_glo" prec="8" / < 108 111 <domain id="greordered" domain_ref="dom_glo"> 109 <reorder_domain invert_lat="true" shift_lon_fraction="0 112 <reorder_domain invert_lat="true" shift_lon_fraction="0" 110 113 </domain> 111 114 </domain_definition> … … 130 133 131 134 132 {{{ 135 {{{#!xml 133 136 <field_definition level="1" prec="4" operation="average" freq_op="1ts" enabled=".true." default_value="9.96921e+36" domain_ref="dom_glo"> 134 137 <field_group id="fields_2D_p8" grid_ref="grid_glo_p8" prec="8"> … … 147 150 * File file_def_histmth_lmdz.xml: (this can also be written in file_def_histday_lmdz.xml) 148 151 149 {{{ 152 {{{#!xml 150 153 <file_definition> 151 154 <file_group id="defile"> … … 158 161 159 162 <field_group grid_ref="grid_glo_p8" ts_enabled="true" freq_op="1d" > 160 <field field_ref="fract_oce_plus_sic_p8" 161 <field field_ref="mask_oce_plus_sic_p8" 163 <field field_ref="fract_oce_plus_sic_p8" level="1" > fract_oce + fract_sic </field> 164 <field field_ref="mask_oce_plus_sic_p8" level="1" > ((fract_oce + fract_sic) > 0) ? 1 : 0 </field> 162 165 </field_group> 163 166 </file>