Changes between Version 12 and Version 13 of IPSLCM6/MOSAIX


Ignore:
Timestamp:
12/12/18 16:57:22 (5 years ago)
Author:
omamce
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IPSLCM6/MOSAIX

    v12 v13  
    1 === MOSAIX === 
     1= MOSAIX = 
     2[[PageOutline]] 
    23 
    34MOSAIX 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. 
     
    3031 
    3132== Requirements == 
     33* Fortran compiler, C++ compiler, MPI. 
    3234* A working [[http://forge.ipsl.jussieu.fr/ioserver|XIOS]] library. Revision 1615 is known to work. 
    3335* fcm version 1.2 
    3436* 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. 
    3639* [[http://nco.sourceforge.net|NCO]]. Version 4.6.0 is known to work. 
    3740 
     
    4346* Weight files {{{rmp_*}}}. Should have a rather explicit name. 
    4447* 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}}}. 
    4649* 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. 
    4851 
    4952== Scripts and codes == 
     
    5558* '''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}}}. 
    5659 
    57 * '''iodef_atm_to_oce.xml''' and '''iodef_oce_to_atm.xml'''.  xml files read by {{{interpol.f90}}}. This file are 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}}}. 
    5861 
    5962* '''MOSAIX/src/MOSAIX/interpol.f90'''. Fortran source using the XIOS library.  
     
    9396* ''oorc''. ORCA grid at ''T'' point. Masked on land, duplicated (from periodicity) point masked, with area equal 1. 
    9497 
    95 == Generating initial grid file == 
     98== Generating input grid files == 
    9699 
    97100''' Generating icosahedral grid in double precision using XIOS:''' 
     
    101104 * File {{{context_lmdz.xml}}} : 
    102105 
    103 {{{ 
     106{{{#!xml 
    104107..... 
    105108 <domain_definition>  
     
    107110     <domain id="dom_glo_p8"  domain_ref="dom_glo"  prec="8" / < 
    108111     <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" 
    110113    </domain>  
    111114 </domain_definition> 
     
    130133 
    131134 
    132 {{{ 
     135{{{#!xml 
    133136<field_definition level="1" prec="4" operation="average" freq_op="1ts" enabled=".true." default_value="9.96921e+36" domain_ref="dom_glo"> 
    134137    <field_group id="fields_2D_p8" grid_ref="grid_glo_p8" prec="8">  
     
    147150 * File file_def_histmth_lmdz.xml: (this can also be written in file_def_histday_lmdz.xml) 
    148151 
    149 {{{ 
     152{{{#!xml 
    150153<file_definition>  
    151154    <file_group id="defile">  
     
    158161                  
    159162          <field_group grid_ref="grid_glo_p8" ts_enabled="true" freq_op="1d" >   
    160               <field field_ref="fract_oce_plus_sic_p8"    level="1" > fract_oce + fract_sic </field>    
    161               <field field_ref="mask_oce_plus_sic_p8"    level="1" > ((fract_oce + fract_sic) &gt; 0) ? 1 : 0 </field>  
     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) &gt; 0) ? 1 : 0 </field>  
    162165          </field_group>  
    163166        </file>