New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 7425 – NEMO

Changeset 7425


Ignore:
Timestamp:
2016-12-01T18:44:09+01:00 (7 years ago)
Author:
cetlod
Message:

Add Xios2

Location:
branches/2016/dev_merge_2016/NEMOGCM
Files:
9 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_merge_2016/NEMOGCM/ARCH/arch-macport_osx.fcm

    r6387 r7425  
    4242%NCDF_HOME           /opt/local 
    4343%HDF5_HOME           /opt/local 
     44###%XIOS_HOME           /Users/$( whoami )/xios-2.0_r966 
    4445%XIOS_HOME           /Users/$( whoami )/xios-1.0 
    4546%OASIS_HOME          /not/defined 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/GYRE_XIOS/EXP00/domain_def.xml

    r4373 r7425  
    1 link ../../SHARED/domain_def.xml 
     1link ../../SHARED/ForXIOS2/domain_def.xml 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/GYRE_XIOS/EXP00/field_def.xml

    r4373 r7425  
    1 link ../../SHARED/field_def.xml 
     1link ../../SHARED/ForXIOS2/field_def.xml 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/GYRE_XIOS/EXP00/iodef.xml

    r5363 r7425  
    22<simulation>  
    33 
    4  <context id="nemo" time_origin="1900-01-01 00:00:00" > 
     4 <context id="nemo" > 
    55     
    66    <!-- $id$ --> 
     
    2121    --> 
    2222     
    23     <file_definition type="multiple_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4"> 
     23    <file_definition type="one_file" name="@expname@_@freq@_@startdate@_@enddate@" sync_freq="1d" min_digits="4"> 
    2424     
    2525      <file_group id="1ts" output_freq="1ts"  output_level="10" enabled=".TRUE."/> <!-- 1 time step files --> 
     
    9999   <domain_definition src="./domain_def.xml"/> 
    100100    
    101    <grid_definition>     
    102      <grid id="grid_T_2D" domain_ref="grid_T"/> 
    103      <grid id="grid_T_3D" domain_ref="grid_T" axis_ref="deptht"/> 
    104      <grid id="grid_U_2D" domain_ref="grid_U"/> 
    105      <grid id="grid_U_3D" domain_ref="grid_U" axis_ref="depthu"/> 
    106      <grid id="grid_V_2D" domain_ref="grid_V"/> 
    107      <grid id="grid_V_3D" domain_ref="grid_V" axis_ref="depthv"/> 
    108      <grid id="grid_W_2D" domain_ref="grid_W"/> 
    109      <grid id="grid_W_3D" domain_ref="grid_W" axis_ref="depthw"/> 
    110     </grid_definition>  
     101 
     102    <grid_definition> 
     103        <!--  --> 
     104       <grid id="grid_T_2D" > 
     105         <domain id="grid_T" /> 
     106       </grid> 
     107        <!--  --> 
     108       <grid id="grid_T_3D_ncatice" > 
     109         <domain id="grid_T" /> 
     110         <axis id="ncatice" /> 
     111       </grid> 
     112        <!--  --> 
     113       <grid id="grid_T_3D" > 
     114         <domain id="grid_T" /> 
     115         <axis id="deptht" /> 
     116       </grid> 
     117        <!--  --> 
     118       <grid id="grid_U_2D" > 
     119         <domain id="grid_U" /> 
     120       </grid> 
     121        <!--  --> 
     122       <grid id="grid_U_3D" > 
     123         <domain id="grid_U" /> 
     124         <axis id="depthu" /> 
     125       </grid> 
     126        <!--  --> 
     127       <grid id="grid_V_2D" > 
     128         <domain id="grid_V" /> 
     129       </grid> 
     130        <!--  --> 
     131       <grid id="grid_V_3D" > 
     132         <domain id="grid_V" /> 
     133         <axis id="depthv" /> 
     134       </grid> 
     135        <!--  --> 
     136       <grid id="grid_W_2D" > 
     137         <domain id="grid_W" /> 
     138       </grid> 
     139        <!--  --> 
     140       <grid id="grid_W_3D" > 
     141         <domain id="grid_W" /> 
     142         <axis id="depthw" /> 
     143       </grid> 
     144        <!--  --> 
     145       <grid id="grid_1point" > 
     146         <domain domain_ref="1point"/> 
     147       </grid> 
     148        <!--  --> 
     149       <grid id="grid_T_nfloat" > 
     150         <domain id="grid_T" /> 
     151         <axis id="nfloat" /> 
     152       </grid> 
     153        <!--  --> 
     154       <grid id="grid_EqT" > 
     155         <domain domain_ref="EqT" /> 
     156       </grid> 
     157        <!--  --> 
     158       <grid id="gznl_T_2D"> 
     159         <domain domain_ref="ptr" /> 
     160       </grid> 
     161        <!--  --> 
     162       <grid id="gznl_T_3D"> 
     163         <domain domain_ref="ptr" /> 
     164         <axis id="deptht" /> 
     165       </grid> 
     166        <!--  --> 
     167       <grid id="gznl_W_2D"> 
     168         <domain domain_ref="ptr" /> 
     169       </grid> 
     170        <!--  --> 
     171       <grid id="gznl_W_3D"> 
     172         <domain domain_ref="ptr" /> 
     173         <axis id="depthw" /> 
     174       </grid> 
     175    </grid_definition> 
     176 
    111177 
    112178  </context> 
     
    117183      <variable_definition> 
    118184    
    119      <!--  
    120         We must have buffer_size > jpi*jpj*jpk*8 (with jpi and jpj the subdomain size) 
    121 --> 
    122      <variable id="buffer_size"               type="integer">10000000</variable> 
    123      <variable id="buffer_server_factor_size" type="integer">2</variable> 
    124      <variable id="info_level"                type="integer">0</variable> 
    125      <variable id="using_server"              type="boolean">false</variable> 
    126      <variable id="using_oasis"               type="boolean">false</variable> 
     185     <variable id="info_level"                type="int">0</variable> 
     186     <variable id="using_server"              type="bool">false</variable> 
     187     <variable id="using_oasis"               type="bool">false</variable> 
    127188     <variable id="oasis_codes_id"            type="string" >oceanx</variable> 
    128189    
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/GYRE_XIOS/EXP00/namelist_cfg

    r7421 r7425  
    33!!>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    44!----------------------------------------------------------------------- 
     5&namusr_def    !   GYRE user defined namelist   
     6!----------------------------------------------------------------------- 
     7   nn_GYRE     =     1     !  GYRE resolution [1/degrees] 
     8   ln_bench    = .false.   !  ! =T benchmark with gyre: the gridsize is kept constant 
     9   jpkglo      =    31     !  number of model levels 
     10/ 
     11 
     12!----------------------------------------------------------------------- 
    513&namrun        !   parameters of the run 
    614!----------------------------------------------------------------------- 
    715   cn_exp      =  "GYRE"   !  experience name 
    816   nn_it000    =       1   !  first time step 
    9    nn_itend    =    4320   !  last  time step 
     17   nn_itend    =    4320   !!gm 4320   !  last  time step 
    1018   nn_leapy    =      30   !  Leap year calendar (1) or not (0) 
    1119   nn_stock    =    4320   !  frequency of creation of a restart file (modulo referenced to 1) 
    1220   nn_write    =      60   !  frequency of write in the output file   (modulo referenced to nn_it000) 
     21 
     22   ln_clobber  = .true.    !  clobber (overwrite) an existing file 
    1323/ 
    1424!----------------------------------------------------------------------- 
     
    1828      !                    !  (=F) user defined configuration  ==>>>  see usrdef(_...) modules 
    1929   ln_write_cfg= .false.   !  (=T) create the domain configuration file 
     30   ! 
    2031/ 
    2132!----------------------------------------------------------------------- 
     
    3041!----------------------------------------------------------------------- 
    3142&namcrs        !   Grid coarsening for dynamics output and/or 
    32                !   passive tracer coarsened online simulations 
     43!              !   passive tracer coarsened online simulations 
    3344!----------------------------------------------------------------------- 
    3445/ 
     
    3647&namtsd    !   data : Temperature  & Salinity 
    3748!----------------------------------------------------------------------- 
    38    cn_dir        = './'    !  root directory for the location of the runoff files 
    39    ln_tsd_init   = .false. !  Initialisation of ocean T & S with T &S input data (T) or not (F) 
    40    ln_tsd_tradmp = .false. !  damping of ocean T & S toward T &S input data (T) or not (F) 
     49   cn_dir        = './'      !  root directory for the location of the runoff files 
     50   ln_tsd_init   = .false.   !  Initialisation of ocean T & S with T &S input data (T) or not (F) 
     51   ln_tsd_tradmp = .false.   !  damping of ocean T & S toward T &S input data (T) or not (F) 
    4152/ 
    4253!----------------------------------------------------------------------- 
     
    4455!----------------------------------------------------------------------- 
    4556   nn_fsbc     = 1         !  frequency of surface boundary condition computation 
    46                            !     (also = the frequency of sea-ice model call) 
     57   !                       !     (also = the frequency of sea-ice model call) 
    4758   ln_usr      = .true.    !  user defined formulation                  (T => check usrdef_sbc) 
    48    ln_blk      = .false.   !  Bulk formulation                          (T => fill namsbc_blk ) 
     59   ln_blk      = .false.   !  CORE bulk formulation                     (T => fill namsbc_core) 
    4960   nn_ice      = 0         !  =0 no ice boundary condition   , 
    5061   ln_rnf      = .false.   !  runoffs                                   (T => fill namsbc_rnf) 
     
    5667!----------------------------------------------------------------------- 
    5768   nn_tau000   =   100     !  gently increase the stress over the first ntau_rst time-steps 
    58    rn_utau0    =   0.1     !  uniform value for the i-stress 
     69   rn_utau0    =   0.1e0   !  uniform value for the i-stress 
    5970/ 
    6071!----------------------------------------------------------------------- 
     
    120131/ 
    121132!----------------------------------------------------------------------- 
    122 &nambbc        !   bottom temperature boundary condition                (default: NO) 
    123 !----------------------------------------------------------------------- 
     133&nambbc        !   bottom temperature boundary condition 
     134!----------------------------------------------------------------------- 
     135   ln_trabbc   = .false.   !  Apply a geothermal heating at the ocean bottom 
     136   nn_geoflx   =    0      !  geothermal heat flux: = 0 no flux 
    124137/ 
    125138!----------------------------------------------------------------------- 
     
    131144!----------------------------------------------------------------------- 
    132145   ln_eos80    = .true.         !  = Use EOS80 equation of state 
     146   !                             ! 
     147!!org GYRE   rn_alpha    =   2.0e-4  !  thermal expension coefficient (nn_eos= 1 or 2) 
     148!!org GYRE   rn_beta     =   7.7e-4  !  saline  expension coefficient (nn_eos= 2) 
     149!!org  caution  now a0 = alpha / rau0   with rau0 = 1026 
    133150/ 
    134151!----------------------------------------------------------------------- 
    135152&namtra_adv    !   advection scheme for tracer 
    136153!----------------------------------------------------------------------- 
    137    ln_traadv_fct =  .true.    !  FCT scheme 
     154   ln_traadv_fct =  .true.   !  FCT scheme 
    138155      nn_fct_h   =  2               !  =2/4, horizontal 2nd / 4th order  
    139156      nn_fct_v   =  2               !  =2/4, vertical   2nd / COMPACT 4th order  
     
    154171   ln_traldf_lev   =  .false.  !  iso-level 
    155172   ln_traldf_hor   =  .false.  !  horizontal (geopotential) 
    156    ln_traldf_iso   =  .true.   !  iso-neutral (standard operator) 
    157    ln_traldf_triad =  .false.  !  iso-neutral (triad    operator) 
     173   ln_traldf_iso   =  .true.   !  iso-neutral 
     174   ln_traldf_triad =  .false.  !  iso-neutral using Griffies triads 
    158175   ! 
    159176   !                       !  iso-neutral options:         
    160    ln_traldf_msc   =  .true.   !  Method of Stabilizing Correction (both operators) 
     177   ln_traldf_msc   =  .false.  !  Method of Stabilizing Correction (both operators) 
    161178   rn_slpmax       =   0.01    !  slope limit                      (both operators) 
    162    ln_triad_iso    =  .false.  !  pure horizontal mixing in ML              (triad only) 
     179   ln_triad_iso    =  .false.  !  pure horizontal mixing in ML     (triad only) 
    163180   rn_sw_triad     =  1        !  =1 switching triad ; =0 all 4 triads used (triad only) 
    164    ln_botmix_triad =  .false.  !  lateral mixing on bottom                  (triad only) 
     181   ln_botmix_triad =  .false.  !  lateral mixing on bottom         (triad only) 
    165182   ! 
    166183   !                       !  Coefficients: 
     
    193210&namdyn_vor    !   option of physics/algorithm (not control by CPP keys) 
    194211!----------------------------------------------------------------------- 
    195    ln_dynvor_ene = .true.  !  energy    conserving scheme   
    196    ln_dynvor_ens = .false. !  enstrophy conserving scheme     
     212   ln_dynvor_ene = .true.  !  enstrophy conserving scheme 
     213   ln_dynvor_ens = .false. !  energy conserving scheme 
     214   ln_dynvor_mix = .false. !  mixed scheme 
    197215   ln_dynvor_een = .false. !  energy & enstrophy scheme 
     216      nn_een_e3f = 1             !  e3f = masked averaging of e3t divided by 4 (=0) or by the sum of mask (=1) 
    198217/ 
    199218!----------------------------------------------------------------------- 
     
    204223/ 
    205224!----------------------------------------------------------------------- 
    206 &namdyn_spg    !   surface pressure gradient 
     225&namdyn_spg    !   surface pressure gradient  
    207226!----------------------------------------------------------------------- 
    208227   ln_dynspg_ts  = .true.  !  split-explicit free surface 
     
    211230&namdyn_ldf    !   lateral diffusion on momentum 
    212231!----------------------------------------------------------------------- 
    213    rn_ahm_0_lap     = 100000.   !  horizontal laplacian eddy viscosity   [m2/s] 
     232   !                       !  Type of the operator : 
     233   !                           !  no diffusion: set ln_dynldf_lap=..._blp=F  
     234   ln_dynldf_lap =  .true.     !    laplacian operator 
     235   ln_dynldf_blp =  .false.    !  bilaplacian operator 
     236   !                       !  Direction of action  : 
     237   ln_dynldf_lev =  .true.     !  iso-level 
     238   ln_dynldf_hor =  .false.    !  horizontal (geopotential) 
     239   ln_dynldf_iso =  .false.    !  iso-neutral 
     240   !                       !  Coefficient 
     241   nn_ahm_ijk_t  = 0           !  space/time variation of eddy coef 
     242   !                                !  =-30  read in eddy_viscosity_3D.nc file 
     243   !                                !  =-20  read in eddy_viscosity_2D.nc file 
     244   !                                !  =  0  constant  
     245   !                                !  = 10  F(k)=c1d 
     246   !                                !  = 20  F(i,j)=F(grid spacing)=c2d 
     247   !                                !  = 30  F(i,j,k)=c2d*c1d 
     248   !                                !  = 31  F(i,j,k)=F(grid spacing and local velocity) 
     249   rn_ahm_0      = 100000.     !  horizontal laplacian eddy viscosity   [m2/s] 
     250   rn_ahm_b      =      0.     !  background eddy viscosity for ldf_iso [m2/s] 
     251   rn_bhm_0      =      0.     !  horizontal bilaplacian eddy viscosity [m4/s] 
    214252/ 
    215253!----------------------------------------------------------------------- 
     
    226264!----------------------------------------------------------------------- 
    227265   nn_etau     =   0       !  penetration of tke below the mixed layer (ML) due to internal & intertial waves 
    228 / 
    229 !------------------------------------------------------------------------ 
    230 &namzdf_kpp    !   K-Profile Parameterization dependent vertical mixing  ("key_zdfkpp", and optionally: 
    231 !------------------------------------------------------------------------ "key_kppcustom" or "key_kpplktb") 
    232266/ 
    233267!----------------------------------------------------------------------- 
     
    260294!              !       or mixed-layer trends or barotropic vorticity    ("key_trdmld" or     "key_trdvor") 
    261295!----------------------------------------------------------------------- 
    262 / 
     296   ln_glo_trd  = .false.   ! (T) global domain averaged diag for T, T^2, KE, and PE 
     297   ln_dyn_trd  = .false.   ! (T) 3D momentum trend output 
     298   ln_dyn_mxl  = .FALSE.   ! (T) 2D momentum trends averaged over the mixed layer (not coded yet) 
     299   ln_vor_trd  = .FALSE.   ! (T) 2D barotropic vorticity trends (not coded yet) 
     300   ln_KE_trd   = .false.   ! (T) 3D Kinetic   Energy     trends 
     301   ln_PE_trd   = .false.   ! (T) 3D Potential Energy     trends 
     302   ln_tra_trd  = .false.    ! (T) 3D tracer trend output 
     303   ln_tra_mxl  = .false.   ! (T) 2D tracer trends averaged over the mixed layer (not coded yet) 
     304   nn_trd      = 365       !  print frequency (ln_glo_trd=T) (unit=time step) 
     305/ 
     306!!gm   nn_ctls     =   0       !  control surface type in mixed-layer trends (0,1 or n<jpk) 
     307!!gm   rn_ucf      =   1.      !  unit conversion factor (=1 -> /seconds ; =86400. -> /day) 
     308!!gm   cn_trdrst_in      = "restart_mld"   ! suffix of ocean restart name (input) 
     309!!gm   cn_trdrst_out     = "restart_mld"   ! suffix of ocean restart name (output) 
     310!!gm   ln_trdmld_restart = .false.         !  restart for ML diagnostics 
     311!!gm   ln_trdmld_instant = .false.         !  flag to diagnose trends of instantantaneous or mean ML T/S 
     312!!gm 
    263313!----------------------------------------------------------------------- 
    264314&namflo       !   float parameters                                      ("key_float") 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/GYRE_XIOS/cpp_GYRE_XIOS.fcm

    r5930 r7425  
    1  bld::tool::fppkeys key_zdftke key_iomput key_mpp_mpi 
     1 bld::tool::fppkeys key_zdftke key_iomput key_mpp_mpi key_xios2 key_nosignedzero 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/SHARED/ForXIOS2/field_def.xml

    r7401 r7425  
    4141         <field id="sstgrad2"     long_name="square of module of sst gradient"                                                        unit="degC2/m2" /> 
    4242         <field id="sbt"          long_name="sea bottom temperature"                                                                  unit="degC"     /> 
     43         <field id="tosmint"      long_name="vertical integral of temperature times density"   standard_name="integral_wrt_depth_of_product_of_density_and_potential_temperature"  unit="(kg m2) degree_C" /> 
    4344         <field id="sst_wl"       long_name="Delta SST of warm layer"                                                                 unit="degC"     /> 
    4445         <field id="sst_cs"       long_name="Delta SST of cool skin"                                                                  unit="degC"     /> 
     
    4950         <field id="sssmax"       long_name="max of sea surface salinity"   field_ref="sss"   operation="maximum"                 /> 
    5051         <field id="sssmin"       long_name="min of sea surface salinity"   field_ref="sss"   operation="minimum"                 /> 
    51          <field id="sbs"          long_name="sea bottom salinity"                                                     unit="1e-3" /> 
     52         <field id="sbs"          long_name="sea bottom salinity"                                                     unit="0.001" /> 
     53         <field id="somint"       long_name="vertical integral of salinity times density"   standard_name="integral_wrt_depth_of_product_of_density_and_salinity"  unit="(kg m2) x (1e-3)" />  
    5254 
    5355         <field id="taubot"       long_name="bottom stress module"                                                    unit="N/m2" />  
     
    9395 
    9496         <!-- variables available with key_diaar5 --> 
    95          <field id="botpres"      long_name="Pressure at sea floor"   standard_name="sea_water_pressure_at_sea_floor"   unit="dbar" /> 
     97         <field id="botpres"      long_name="Sea Water Pressure at Sea Floor"   standard_name="sea_water_pressure_at_sea_floor"   unit="dbar" /> 
     98         <field id="sshdyn"       long_name="dynamic sea surface height"     standard_name="dynamic_sea_surface_height_above_geoid"     unit="m" /> 
     99         <field id="sshdyn2"      long_name="square of dynamic sea surface height"     standard_name="dynamic_sea_surface_height_above_geoid_squared"     unit="m2" > sshdyn * sshdyn </field> 
     100         <field id="tnpeo"      long_name="Tendency of ocean potential energy content"          unit="W/m2"                           /> 
    96101 
    97102         <!-- variables available with key_vvl --> 
     
    205210         <!-- * variable related to ice shelf forcing * --> 
    206211         <field id="fwfisf"       long_name="Ice shelf melting"                                            unit="Kg/m2/s"  /> 
    207          <field id="qisf"         long_name="Ice Shelf Heat Flux"                                          unit="W/m2"     /> 
     212         <field id="fwfisf3d"     long_name="Ice shelf melting"                             unit="kg/m2/s"  grid_ref="grid_T_3D" /> 
     213         <field id="qlatisf"      long_name="Ice shelf latent heat flux"                    unit="W/m2"     /> 
     214         <field id="qlatisf3d"    long_name="Ice shelf latent heat flux"                    unit="W/m2"     grid_ref="grid_T_3D" /> 
     215         <field id="qhcisf"       long_name="Ice shelf heat content flux"                   unit="W/m2"     /> 
     216         <field id="qhcisf3d"     long_name="Ice shelf heat content flux"                   unit="W/m2"     grid_ref="grid_T_3D" /> 
    208217         <field id="isfgammat"    long_name="transfert coefficient for isf (temperature) "                 unit="m/s"      /> 
    209218         <field id="isfgammas"    long_name="transfert coefficient for isf (salinity)    "                 unit="m/s"      /> 
     
    239248         <field id="hflx_rain_cea" long_name="heat flux due to rainfall"                                standard_name="temperature_flux_due_to_rainfall_expressed_as_heat_flux_into_sea_water"        unit="W/m2"     /> 
    240249         <field id="hflx_evap_cea" long_name="heat flux due to evaporation"                             standard_name="temperature_flux_due_to_evaporation_expressed_as_heat_flux_out_of_sea_water"   unit="W/m2"     /> 
    241          <field id="hflx_snow_cea" long_name="heat flux due to snow falling over ice-free ocean"        standard_name="heat_flux_into_sea_water_due_to_snow_thermodynamics"                           unit="W/m2"     /> 
     250         <field id="hflx_snow_cea" long_name="heat flux due to snow falling"                            standard_name="heat_flux_onto_ocean_and_ice_due_to_snow_thermodynamics"                       unit="W/m2"     /> 
     251         <field id="hflx_snow_ai_cea" long_name="heat flux due to snow falling over ice"                standard_name="heat_flux_onto_ice_due_to_snow_thermodynamics"                                 unit="W/m2"     /> 
     252         <field id="hflx_snow_ao_cea" long_name="heat flux due to snow falling over ice-free ocean"     standard_name="heat_flux_onto_sea_water_due_to_snow_thermodynamics"                           unit="W/m2"     /> 
    242253         <field id="hflx_ice_cea"  long_name="heat flux due to ice thermodynamics"                      standard_name="heat_flux_into_sea_water_due_to_sea_ice_thermodynamics"                        unit="W/m2"     /> 
    243254         <field id="hflx_rnf_cea"  long_name="heat flux due to runoffs"                                 standard_name="temperature_flux_due_to_runoff_expressed_as_heat_flux_into_sea_water"          unit="W/m2"     /> 
     
    317328         <field id="icevolu"      long_name="ice volume"                                                   unit="m"        /> 
    318329         <field id="snowvol"      long_name="snow volume"                                                  unit="m"        /> 
     330         <field id="tau_icebfr"   long_name="ice friction on ocean bottom for landfast ice"                unit="N/m2"     /> 
    319331 
    320332         <field id="icetrp"       long_name="ice volume transport"                                         unit="m/day"          /> 
     
    330342         <field id="sfxbom"       long_name="salt flux from bot melt"                                      unit="1e-3*kg/m2/day" /> 
    331343         <field id="sfxsum"       long_name="salt flux from surf melt"                                     unit="1e-3*kg/m2/day" /> 
     344         <field id="sfxlam"       long_name="salt flux from lateral melt"                                  unit="1e-3*kg/m2/day" /> 
    332345         <field id="sfxsni"       long_name="salt flux from snow-ice formation"                            unit="1e-3*kg/m2/day" /> 
    333346         <field id="sfxopw"       long_name="salt flux from open water ice formation"                      unit="1e-3*kg/m2/day" /> 
     
    340353         <field id="vfxsni"       long_name="daily snowice ice prod."                                      unit="m/day"   /> 
    341354         <field id="vfxsum"       long_name="surface melt"                                                 unit="m/day"   /> 
     355         <field id="vfxlam"       long_name="lateral melt"                                                 unit="m/day"   /> 
    342356         <field id="vfxbom"       long_name="bottom melt"                                                  unit="m/day"   /> 
    343357         <field id="vfxres"       long_name="daily resultant ice prod./melting from limupdate"             unit="m/day"   /> 
     
    345359         <field id="vfxsnw"       long_name="snw melt/growth"                                              unit="m/day"   /> 
    346360         <field id="vfxsub"       long_name="snw sublimation"                                              unit="m/day"   /> 
     361         <field id="vfxsub_err"   long_name="excess of snw sublimation sent to ocean"                      unit="m/day"   /> 
    347362         <field id="vfxspr"       long_name="snw precipitation on ice"                                     unit="m/day"   /> 
    348          <field id="vfxthin"      long_name="daily thermo ice prod. for thin ice(<20cm) + open water"      unit="m/day"   /> 
     363         <field id="vfxthin"      long_name="daily thermo ice prod. for thin ice(20cm) + open water"       unit="m/day"   /> 
    349364 
    350365         <field id="afxtot"       long_name="area tendency (total)"                                        unit="day-1"   /> 
     
    418433         <field id="utbl"         long_name="zonal current in the Losh tbl"     unit="m/s" /> 
    419434 
    420          <!-- variables available with key_diaar5 --> 
    421          <field id="u_masstr"     long_name="ocean eulerian mass transport along i-axis"    standard_name="ocean_mass_x_transport"                          unit="kg/s"        grid_ref="grid_U_3D" /> 
     435         <field id="u_masstr"     long_name="Ocean Mass X Transport"    standard_name="ocean_mass_x_transport"                          unit="kg/s"        grid_ref="grid_U_3D" /> 
     436         <field id="u_masstr_vint" long_name="vertical integral of ocean eulerian mass transport along i-axis"    standard_name="vertical_integral_of_ocean_mass_x_transport"  unit="kg/s" /> 
    422437         <field id="u_heattr"     long_name="ocean eulerian heat transport along i-axis"    standard_name="ocean_heat_x_transport"                          unit="W"                                /> 
    423438         <field id="u_salttr"     long_name="ocean eulerian salt transport along i-axis"    standard_name="ocean_salt_x_transport"                          unit="1e-3*kg/s"                        /> 
     439         <field id="uadv_heattr"  long_name="ocean advective heat transport along i-axis"    standard_name="advectice_ocean_heat_x_transport"               unit="W"                                /> 
     440         <field id="uadv_salttr"  long_name="ocean advective salt transport along i-axis"    standard_name="advectice_ocean_salt_x_transport"               unit="1e-3*kg/s"                      /> 
    424441         <field id="ueiv_heattr"  long_name="ocean bolus heat transport along i-axis"       standard_name="ocean_heat_x_transport_due_to_bolus_advection"   unit="W"                                /> 
     442         <field id="ueiv_salttr"  long_name="ocean bolus salt transport along i-axis"       standard_name="ocean_salt_x_transport_due_to_bolus_advection"   unit="Kg"                                /> 
     443         <field id="ueiv_heattr3d" long_name="ocean bolus heat transport along i-axis"    standard_name="ocean_heat_x_transport_due_to_bolus_advection"   unit="W"    grid_ref="grid_U_3D" /> 
     444         <field id="ueiv_salttr3d" long_name="ocean bolus salt transport along i-axis"    standard_name="ocean_salt_x_transport_due_to_bolus_advection"   unit="kg"   grid_ref="grid_U_3D" /> 
    425445         <field id="udiff_heattr" long_name="ocean diffusion heat transport along i-axis"   standard_name="ocean_heat_x_transport_due_to_diffusion"         unit="W"                                /> 
     446         <field id="udiff_salttr" long_name="ocean diffusion salt transport along i-axis"   standard_name="ocean_salt_x_transport_due_to_diffusion"         unit="1e-3*kg/s"                                /> 
    426447      </field_group> 
    427448       
     
    464485         <field id="v_heattr"     long_name="ocean eulerian heat transport along j-axis"    standard_name="ocean_heat_y_transport"                          unit="W"                                /> 
    465486         <field id="v_salttr"     long_name="ocean eulerian salt transport along i-axis"    standard_name="ocean_salt_y_transport"                          unit="1e-3*kg/s"                        /> 
     487         <field id="vadv_heattr"  long_name="ocean advective heat transport along j-axis"   standard_name="advectice_ocean_heat_y_transport"                unit="W"                      /> 
     488         <field id="vadv_salttr"  long_name="ocean advective salt transport along j-axis"   standard_name="advectice_ocean_salt_y_transport"                unit="1e-3*kg/s"              /> 
    466489         <field id="veiv_heattr"  long_name="ocean bolus heat transport along j-axis"       standard_name="ocean_heat_y_transport_due_to_bolus_advection"   unit="W"                                /> 
     490         <field id="veiv_salttr"  long_name="ocean bolus salt transport along j-axis"       standard_name="ocean_salt_x_transport_due_to_bolus_advection"   unit="Kg"                                /> 
     491         <field id="veiv_heattr3d" long_name="ocean bolus heat transport along j-axis"    standard_name="ocean_heat_y_transport_due_to_bolus_advection"   unit="W"    grid_ref="grid_V_3D" /> 
     492         <field id="veiv_salttr3d" long_name="ocean bolus salt transport along j-axis"    standard_name="ocean_salt_y_transport_due_to_bolus_advection"   unit="kg"   grid_ref="grid_V_3D" /> 
    467493         <field id="vdiff_heattr" long_name="ocean diffusion heat transport along j-axis"   standard_name="ocean_heat_y_transport_due_to_diffusion"         unit="W"                                /> 
     494         <field id="vdiff_salttr" long_name="ocean diffusion salt transport along j-axis"   standard_name="ocean_salt_y_transport_due_to_diffusion"         unit="1e-3*kg/s"                        /> 
    468495      </field_group> 
    469496       
     
    508535         <field id="ahmf_3d"      long_name=" 3D      f-eddy viscosity coefficient"   unit="m2/s or m4/s"                           grid_ref="grid_T_3D"/> 
    509536 
    510       <!-- scalar variables available with key_diaar5 --> 
    511537 
    512538      <field_group id="scalar"  grid_ref="grid_T_2D"  > 
     
    521547 
    522548          <!-- available with ln_diahsb --> 
    523        <field id="bgtemper"     long_name="drift in global mean temperature wrt timestep 1"                 standard_name="change_over_time_in_sea_water_potential_temperature"   unit="degC"     /> 
     549       <field id="bgtemper"     long_name="drift in global mean temperature wrt timestep 1"                 standard_name="change_over_time_in_sea_water_potential_temperature"   unit="degC"     /> 
    524550       <field id="bgsaline"     long_name="drift in global mean salinity wrt timestep 1"                    standard_name="change_over_time_in_sea_water_practical_salinity"      unit="1e-3"     /> 
    525        <field id="bgheatco"     long_name="drift in global mean heat content wrt timestep 1"                                                                                      unit="10^9J"    /> 
    526        <field id="bgsaltco"     long_name="drift in global mean salt content wrt timestep 1"                                                                                      unit="1e-3*m3"  /> 
     551       <field id="bgheatco"     long_name="drift in global mean heat content wrt timestep 1"                                                                                      unit="1.e20J"   /> 
     552       <field id="bgheatfx"     long_name="drift in global mean heat flux    wrt timestep 1"                                                                                      unit="W/m2"     /> 
     553           <field id="bgsaltco"     long_name="drift in global mean salt content wrt timestep 1"                                                                                      unit="1e-3*km3" /> 
    527554       <field id="bgvolssh"     long_name="drift in global mean ssh volume wrt timestep 1"                                                                                        unit="km3"      /> 
    528555         <field id="bgvole3t"     long_name="drift in global mean volume variation (e3t) wrt timestep 1"                                                                            unit="km3"      /> 
    529        <field id="bgvoltot"     long_name="drift in global mean volume wrt timestep 1"                                                                                            unit="km3"      /> 
    530          <!-- NOTE: No matching iom_put call --> 
    531        <field id="bgsshtot"     long_name="drift in global mean ssh wrt timestep 1"                         standard_name="global_average_sea_level_change"                       unit="m"        /> 
    532        <field id="bgfrcvol"     long_name="drift in global mean volume from forcing wrt timestep 1"                                                                               unit="km3"      /> 
    533        <field id="bgfrctem"     long_name="drift in global mean heat content from forcing wrt timestep 1"                                                                         unit="10^9J"    /> 
    534        <field id="bgfrcsal"     long_name="drift in global mean salt content from forcing wrt timestep 1"                                                                         unit="1e-3*km3" /> 
    535        <field id="bgmistem"     long_name="global mean temperature error due to free surface"                                                                                     unit="degC"     /> 
    536        <field id="bgmissal"     long_name="global mean salinity error due to free surface"                                                                                        unit="1e-3"     /> 
    537       </field_group> 
     556       <field id="bgfrcvol"     long_name="global mean volume from forcing"                                                                                                       unit="km3"      /> 
     557       <field id="bgfrctem"     long_name="global mean heat content from forcing"                                                                                                 unit="1.e20J"   /> 
     558         <field id="bgfrchfx"     long_name="global mean heat flux from forcing"                                                                                                    unit="W/m2"     /> 
     559       <field id="bgfrcsal"     long_name="global mean salt content from forcing"                                                                                                 unit="1e-3*km3" /> 
     560       <field id="bgmistem"     long_name="global mean temperature error due to free surface (no vvl)"                                                                            unit="degC"     /> 
     561       <field id="bgmissal"     long_name="global mean salinity error due to free surface (no vvl)"                                                                               unit="1e-3"     /> 
     562     </field_group> 
    538563 
    539564      <!-- LIM3 scalar variables --> 
    540565 
    541       <field_group id="SBC_scalar"  grid_ref="grid_T_2D" > 
     566      <field_group id="SBC_scalar"  grid_ref="grid_T_2D"  > 
    542567         <!-- available with ln_limdiaout --> 
    543          <field id="ibgvoltot"    long_name="global mean ice volume"                                 unit="km3"        /> 
    544          <field id="sbgvoltot"    long_name="global mean snow volume"                                unit="km3"        /> 
    545          <field id="ibgarea"      long_name="global mean ice area"                                   unit="km2"        /> 
    546          <field id="ibgsaline"    long_name="global mean ice salinity"                               unit="1e-3"       /> 
    547          <field id="ibgtemper"    long_name="global mean ice temperature"                            unit="degC"       /> 
    548          <field id="ibgheatco"    long_name="global mean ice heat content"                           unit="10^20J"     /> 
    549          <field id="sbgheatco"    long_name="global mean snow heat content"                          unit="10^20J"     /> 
    550          <field id="ibgsaltco"    long_name="global mean ice salt content"                           unit="1e-3*km3"   /> 
    551  
    552          <field id="ibgvfx"       long_name="global mean volume flux (emp)"                          unit="m/day"      /> 
    553          <field id="ibgvfxbog"    long_name="global mean volume flux (bottom growth)"                unit="m/day"      /> 
    554          <field id="ibgvfxopw"    long_name="global mean volume flux (open water growth)"            unit="m/day"      /> 
    555          <field id="ibgvfxsni"    long_name="global mean volume flux (snow-ice growth)"              unit="m/day"      /> 
    556          <field id="ibgvfxdyn"    long_name="global mean volume flux (dynamic growth)"               unit="m/day"      /> 
    557          <field id="ibgvfxbom"    long_name="global mean volume flux (bottom melt)"                  unit="m/day"      /> 
    558          <field id="ibgvfxsum"    long_name="global mean volume flux (surface melt)"                 unit="m/day"      /> 
    559          <field id="ibgvfxres"    long_name="global mean volume flux (resultant)"                    unit="m/day"      /> 
    560          <field id="ibgvfxspr"    long_name="global mean volume flux (snow precip)"                  unit="m/day"      /> 
    561          <field id="ibgvfxsnw"    long_name="global mean volume flux (snow melt)"                    unit="m/day"      /> 
    562          <field id="ibgvfxsub"    long_name="global mean volume flux (snow sublimation)"             unit="m/day"      /> 
    563  
    564          <field id="ibgsfx"       long_name="global mean salt flux (total)"                          unit="1e-3*m/day" /> 
    565          <field id="ibgsfxbri"    long_name="global mean salt flux (brines)"                         unit="1e-3*m/day" /> 
    566          <field id="ibgsfxdyn"    long_name="global mean salt flux (dynamic)"                        unit="1e-3*m/day" /> 
    567          <field id="ibgsfxres"    long_name="global mean salt flux (resultant)"                      unit="1e-3*m/day" /> 
    568          <field id="ibgsfxbog"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    569          <field id="ibgsfxopw"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    570          <field id="ibgsfxsni"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    571          <field id="ibgsfxbom"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    572          <field id="ibgsfxsum"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    573          <field id="ibgsfxsub"    long_name="global mean salt flux (thermo)"                         unit="1e-3*m/day" /> 
    574  
    575          <field id="ibghfxdhc"    long_name="Heat content variation in snow and ice"                 unit="W"          /> 
    576          <field id="ibghfxspr"    long_name="Heat content of snow precip"                            unit="W"          /> 
    577  
    578          <field id="ibghfxthd"    long_name="heat fluxes from ice-ocean exchange during thermo"      unit="W"          /> 
    579          <field id="ibghfxsum"    long_name="heat fluxes causing surface ice melt"                   unit="W"          /> 
    580          <field id="ibghfxbom"    long_name="heat fluxes causing bottom ice melt"                    unit="W"          /> 
    581          <field id="ibghfxbog"    long_name="heat fluxes causing bottom ice growth"                  unit="W"          /> 
    582          <field id="ibghfxdif"    long_name="heat fluxes causing ice temperature change"             unit="W"          /> 
    583          <field id="ibghfxopw"    long_name="heat fluxes causing open water ice formation"           unit="W"          /> 
    584          <field id="ibghfxdyn"    long_name="heat fluxes from ice-ocean exchange during dynamic"     unit="W"          /> 
    585          <field id="ibghfxres"    long_name="heat fluxes from ice-ocean exchange during resultant"   unit="W"          /> 
    586          <field id="ibghfxsub"    long_name="heat fluxes from sublimation"                           unit="W"          /> 
    587          <field id="ibghfxsnw"    long_name="heat fluxes from snow-ocean exchange"                   unit="W"          /> 
    588          <field id="ibghfxout"    long_name="non solar heat fluxes received by the ocean"            unit="W"          /> 
    589          <field id="ibghfxin"     long_name="total heat fluxes at the ice surface"                   unit="W"          /> 
    590  
    591          <field id="ibgfrcvol"    long_name="global mean forcing volume (emp)"                       unit="km3"        /> 
    592          <field id="ibgfrcsfx"    long_name="global mean forcing salt   (sfx)"                       unit="1e-3*km3"   /> 
    593          <field id="ibgvolgrm"    long_name="global mean ice growth+melt volume"                     unit="km3"        /> 
     568         <field id="ibgfrcvoltop"    long_name="global mean ice/snow forcing at interface ice/snow-atm (volume equivalent ocean volume)"   unit="km3"       /> 
     569         <field id="ibgfrcvolbot"    long_name="global mean ice/snow forcing at interface ice/snow-ocean (volume equivalent ocean volume)" unit="km3"       /> 
     570         <field id="ibgfrctemtop"    long_name="global mean heat on top of ice/snw/ocean-atm "                                             unit="1e20J"     /> 
     571         <field id="ibgfrctembot"    long_name="global mean heat below ice (on top of ocean) "                                             unit="1e20J"     /> 
     572         <field id="ibgfrcsal"       long_name="global mean ice/snow forcing (salt equivalent ocean volume)"                               unit="pss*km3"   /> 
     573         <field id="ibgfrchfxtop"    long_name="global mean heat flux on top of ice/snw/ocean-atm "                                        unit="W/m2"      /> 
     574         <field id="ibgfrchfxbot"    long_name="global mean heat flux below ice (on top of ocean) "                                        unit="W/m2"      /> 
     575  
     576         <field id="ibgvolume"    long_name="drift in ice/snow volume (equivalent ocean volume)"            unit="km3"        /> 
     577         <field id="ibgsaltco"    long_name="drift in ice salt content (equivalent ocean volume)"           unit="pss*km3"    /> 
     578         <field id="ibgheatco"    long_name="drift in ice/snow heat content"                                unit="1e20J"      /> 
     579         <field id="ibgheatfx"    long_name="drift in ice/snow heat flux"                                   unit="W/m2"       /> 
     580         <field id="sbgvol_tot"    long_name="global mean snow volume"                                      unit="km3"        /> 
     581         <field id="ibgarea_tot"   long_name="global mean ice area"                                         unit="km2"        /> 
     582         <field id="ibgsalt_tot"   long_name="global mean ice salt content"                                 unit="1e-3*km3"   /> 
     583         <field id="ibgheat_tot"   long_name="global mean ice heat content"                                 unit="1e20J"      /> 
     584         <field id="sbgheat_tot"   long_name="global mean snow heat content"                                unit="1e20J"      /> 
    594585      </field_group> 
    595586   
    596587      <!-- variables available with key_float --> 
    597588 
    598       <field_group id="floatvar" grid_ref="grid_T_nfloat" operation="instant" > 
     589      <field_group id="floatvar" grid_ref="grid_T_nfloat"  operation="instant" > 
    599590        <field id="traj_lon"      long_name="floats longitude"                                                           unit="degrees_east"  /> 
    600591        <field id="traj_lat"      long_name="floats latitude"                                                            unit="degrees_north" /> 
     
    625616 
    626617      <!-- Poleward transport : ptr -->      
    627       <field_group id="diaptr" >  
     618      <field_group id="diaptr" >   
    628619        <field id="zomsfglo"          long_name="Meridional Stream-Function: Global"           unit="Sv"       grid_ref="gznl_W_3D" /> 
    629620        <field id="zomsfatl"          long_name="Meridional Stream-Function: Atlantic"         unit="Sv"       grid_ref="gznl_W_3D" /> 
     
    631622        <field id="zomsfind"          long_name="Meridional Stream-Function: Indian"           unit="Sv"       grid_ref="gznl_W_3D" /> 
    632623        <field id="zomsfipc"          long_name="Meridional Stream-Function: Pacific+Indian"   unit="Sv"       grid_ref="gznl_W_3D" /> 
    633         <field id="zotemglo"          long_name="Zonal Mean Temperature : Global"              unit="degC"     grid_ref="gznl_T_3D" /> 
    634         <field id="zotematl"          long_name="Zonal Mean Temperature : Atlantic"            unit="degC"     grid_ref="gznl_T_3D" /> 
    635         <field id="zotempac"          long_name="Zonal Mean Temperature : Pacific"             unit="degC"     grid_ref="gznl_T_3D" /> 
    636         <field id="zotemind"          long_name="Zonal Mean Temperature : Indian"              unit="degC"     grid_ref="gznl_T_3D" /> 
    637         <field id="zotemipc"          long_name="Zonal Mean Temperature : Pacific+Indian"      unit="degC"     grid_ref="gznl_T_3D" /> 
    638         <field id="zosalglo"          long_name="Zonal Mean Salinity : Global"                 unit="1e-3"     grid_ref="gznl_T_3D" /> 
    639         <field id="zosalatl"          long_name="Zonal Mean Salinity : Atlantic"               unit="1e-3"     grid_ref="gznl_T_3D" /> 
    640         <field id="zosalpac"          long_name="Zonal Mean Salinity : Pacific"                unit="1e-3"     grid_ref="gznl_T_3D" /> 
    641         <field id="zosalind"          long_name="Zonal Mean Salinity : Indian"                 unit="1e-3"     grid_ref="gznl_T_3D" /> 
    642         <field id="zosalipc"          long_name="Zonal Mean Salinity : Pacific+Indian"         unit="1e-3"     grid_ref="gznl_T_3D" /> 
     624        <field id="zotemglo"          long_name="Zonal Mean Temperature : Global"              unit="degree_C"     grid_ref="gznl_T_3D" /> 
     625        <field id="zotematl"          long_name="Zonal Mean Temperature : Atlantic"            unit="degree_C"     grid_ref="gznl_T_3D" /> 
     626        <field id="zotempac"          long_name="Zonal Mean Temperature : Pacific"             unit="degree_C"     grid_ref="gznl_T_3D" /> 
     627        <field id="zotemind"          long_name="Zonal Mean Temperature : Indian"              unit="degree_C"     grid_ref="gznl_T_3D" /> 
     628        <field id="zotemipc"          long_name="Zonal Mean Temperature : Pacific+Indian"      unit="degree_C"     grid_ref="gznl_T_3D" /> 
     629        <field id="zosalglo"          long_name="Zonal Mean Salinity : Global"                 unit="0.001"     grid_ref="gznl_T_3D" /> 
     630        <field id="zosalatl"          long_name="Zonal Mean Salinity : Atlantic"               unit="0.001"     grid_ref="gznl_T_3D" /> 
     631        <field id="zosalpac"          long_name="Zonal Mean Salinity : Pacific"                unit="0.001"     grid_ref="gznl_T_3D" /> 
     632        <field id="zosalind"          long_name="Zonal Mean Salinity : Indian"                 unit="0.001"     grid_ref="gznl_T_3D" /> 
     633        <field id="zosalipc"          long_name="Zonal Mean Salinity : Pacific+Indian"         unit="0.001"     grid_ref="gznl_T_3D" /> 
    643634        <field id="zosrfglo"          long_name="Zonal Mean Surface"                           unit="m2"       grid_ref="gznl_T_3D" /> 
    644635        <field id="zosrfatl"          long_name="Zonal Mean Surface : Atlantic"                unit="m2"       grid_ref="gznl_T_3D" /> 
     
    647638        <field id="zosrfipc"          long_name="Zonal Mean Surface : Pacific+Indian"          unit="m2"       grid_ref="gznl_T_3D" /> 
    648639        <field id="sophtadv"          long_name="Advective Heat Transport"                     unit="PW"       grid_ref="gznl_T_2D" /> 
     640        <field id="sophtadv_atl"      long_name="Advective Heat Transport: Atlantic"           unit="PW"       grid_ref="gznl_T_2D" /> 
     641        <field id="sophtadv_pac"      long_name="Advective Heat Transport: Pacific"            unit="PW"       grid_ref="gznl_T_2D" /> 
     642        <field id="sophtadv_ind"      long_name="Advective Heat Transport: Indian"             unit="PW"       grid_ref="gznl_T_2D" /> 
     643        <field id="sophtadv_ipc"      long_name="Advective Heat Transport: Pacific+Indian"     unit="PW"       grid_ref="gznl_T_2D" /> 
    649644        <field id="sophtldf"          long_name="Diffusive Heat Transport"                     unit="PW"       grid_ref="gznl_T_2D" /> 
     645        <field id="sophtldf_atl"      long_name="Diffusive Heat Transport: Atlantic"           unit="PW"       grid_ref="gznl_T_2D" /> 
     646        <field id="sophtldf_pac"      long_name="Diffusive Heat Transport: Pacific"            unit="PW"       grid_ref="gznl_T_2D" /> 
     647        <field id="sophtldf_ind"      long_name="Diffusive Heat Transport: Indian"             unit="PW"       grid_ref="gznl_T_2D" /> 
     648        <field id="sophtldf_ipc"      long_name="Diffusive Heat Transport: Pacific+Indian"     unit="PW"       grid_ref="gznl_T_2D" /> 
     649        <field id="sophtove"          long_name="Overturning Heat Transport"                     unit="PW"       grid_ref="gznl_T_2D" /> 
     650        <field id="sophtove_atl"      long_name="Overturning Heat Transport: Atlantic"           unit="PW"       grid_ref="gznl_T_2D" /> 
     651        <field id="sophtove_pac"      long_name="Overturning Heat Transport: Pacific"            unit="PW"       grid_ref="gznl_T_2D" /> 
     652        <field id="sophtove_ind"      long_name="Overturning Heat Transport: Indian"             unit="PW"       grid_ref="gznl_T_2D" /> 
     653        <field id="sophtove_ipc"      long_name="Overturning Heat Transport: Pacific+Indian"     unit="PW"       grid_ref="gznl_T_2D" /> 
     654        <field id="sophtbtr"          long_name="Barotropic Heat Transport"                     unit="PW"       grid_ref="gznl_T_2D" /> 
     655        <field id="sophtbtr_atl"      long_name="Barotropic Heat Transport: Atlantic"           unit="PW"       grid_ref="gznl_T_2D" /> 
     656        <field id="sophtbtr_pac"      long_name="Barotropic Heat Transport: Pacific"            unit="PW"       grid_ref="gznl_T_2D" /> 
     657        <field id="sophtbtr_ind"      long_name="Barotropic Heat Transport: Indian"             unit="PW"       grid_ref="gznl_T_2D" /> 
     658        <field id="sophtbtr_ipc"      long_name="Barotropic Heat Transport: Pacific+Indian"     unit="PW"       grid_ref="gznl_T_2D" /> 
     659        <field id="sophteiv"          long_name="Heat Transport from mesoscale eddy advection"                     unit="PW"       grid_ref="gznl_T_2D" /> 
     660        <field id="sophteiv_atl"      long_name="Heat Transport from mesoscale eddy advection: Atlantic"           unit="PW"       grid_ref="gznl_T_2D" /> 
     661        <field id="sophteiv_pac"      long_name="Heat Transport from mesoscale eddy advection: Pacific"            unit="PW"       grid_ref="gznl_T_2D" /> 
     662        <field id="sophteiv_ind"      long_name="Heat Transport from mesoscale eddy advection: Indian"             unit="PW"       grid_ref="gznl_T_2D" /> 
     663        <field id="sophteiv_ipc"      long_name="Heat Transport from mesoscale eddy advection: Pacific+Indian"     unit="PW"       grid_ref="gznl_T_2D" /> 
    650664        <field id="sopstadv"          long_name="Advective Salt Transport"                     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     665        <field id="sopstadv_atl"      long_name="Advective Salt Transport: Atlantic"           unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     666        <field id="sopstadv_pac"      long_name="Advective Salt Transport: Pacific"            unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     667        <field id="sopstadv_ind"      long_name="Advective Salt Transport: Indian"             unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     668        <field id="sopstadv_ipc"      long_name="Advective Salt Transport: Pacific+Indian"     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     669        <field id="sopstove"          long_name="Overturning Salt Transport"                     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     670        <field id="sopstove_atl"      long_name="Overturning Salt Transport: Atlantic"           unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     671        <field id="sopstove_pac"      long_name="Overturning Salt Transport: Pacific"            unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     672        <field id="sopstove_ind"      long_name="Overturning Salt Transport: Indian"             unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     673        <field id="sopstove_ipc"      long_name="Overturning Salt Transport: Pacific+Indian"     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     674        <field id="sopstbtr"          long_name="Barotropic Salt Transport"                     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     675        <field id="sopstbtr_atl"      long_name="Barotropic Salt Transport: Atlantic"           unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     676        <field id="sopstbtr_pac"      long_name="Barotropic Salt Transport: Pacific"            unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     677        <field id="sopstbtr_ind"      long_name="Barotropic Salt Transport: Indian"             unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     678        <field id="sopstbtr_ipc"      long_name="Barotropic Salt Transport: Pacific+Indian"     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
    651679        <field id="sopstldf"          long_name="Diffusive Salt Transport"                     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     680        <field id="sopstldf_atl"      long_name="Diffusive Salt Transport: Atlantic"           unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     681        <field id="sopstldf_pac"      long_name="Diffusive Salt Transport: Pacific"            unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     682        <field id="sopstldf_ind"      long_name="Diffusive Salt Transport: Indian"             unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     683        <field id="sopstldf_ipc"      long_name="Diffusive Salt Transport: Pacific+Indian"     unit="Giga g/s" grid_ref="gznl_T_2D" /> 
     684        <field id="sopsteiv"          long_name="Salt Transport from mesoscale eddy advection"                     unit="Giga g/s"       grid_ref="gznl_T_2D" /> 
     685        <field id="sopsteiv_atl"      long_name="Salt Transport from mesoscale eddy advection: Atlantic"           unit="Giga g/s"       grid_ref="gznl_T_2D" /> 
     686        <field id="sopsteiv_pac"      long_name="Salt Transport from mesoscale eddy advection: Pacific"            unit="Giga g/s"       grid_ref="gznl_T_2D" /> 
     687        <field id="sopsteiv_ind"      long_name="Salt Transport from mesoscale eddy advection: Indian"             unit="Giga g/s"       grid_ref="gznl_T_2D" /> 
     688        <field id="sopsteiv_ipc"      long_name="Salt Transport from mesoscale eddy advection: Pacific+Indian"     unit="Giga g/s"       grid_ref="gznl_T_2D" />        
    652689      </field_group> 
    653690 
     
    668705      <field id="ttrd_ad"       long_name="temperature-trend: advection"               standard_name="tendency_of_sea_water_temperature_due_to_advection"           unit="degC/s"                         > sqrt( ttrd_xad^2 + ttrd_yad^2 + ttrd_zad^2 ) </field> 
    669706      <field id="strd_ad"       long_name="salinity   -trend: advection"               standard_name="tendency_of_sea_water_salinity_due_to_advection"              unit="1e-3/s"                         > sqrt( strd_xad^2 + strd_yad^2 + strd_zad^2 ) </field> 
     707      <field id="ttrd_totad"    long_name="temperature-trend: total advection"         standard_name="tendency_of_sea_water_salinity_due_to_advection"              unit="degC/s"                        /> 
     708      <field id="strd_totad"    long_name="salinity   -trend: total advection"         standard_name="tendency_of_sea_water_salinity_due_to_advection"              unit="1e-3/s"                        /> 
    670709      <field id="ttrd_sad"      long_name="temperature-trend: surface adv. (no-vvl)"                                                                                unit="degC/s"   grid_ref="grid_T_2D" /> 
    671710      <field id="strd_sad"      long_name="salinity   -trend: surface adv. (no-vvl)"                                                                                unit="1e-3/s"   grid_ref="grid_T_2D" /> 
     
    674713      <field id="ttrd_zdf"      long_name="temperature-trend: vertical diffusion"      standard_name="tendency_of_sea_water_temperature_due_to_vertical_mixing"     unit="degC/s"                        /> 
    675714      <field id="strd_zdf"      long_name="salinity   -trend: vertical diffusion"      standard_name="tendency_of_sea_water_salinity_due_to_vertical_mixing"        unit="1e-3/s"                        /> 
     715      <field id="ttrd_evd"      long_name="temperature-trend: EVD convection"                                                                                       unit="degC/s"                        /> 
     716      <field id="strd_evd"      long_name="salinity   -trend: EVD convection"                                                                                       unit="1e-3/s"                        /> 
    676717 
    677718      <!-- ln_traldf_iso=T only (iso-neutral diffusion) --> 
     719      <field id="ttrd_iso"      long_name="temperature-trend: isopycnal diffusion"                             unit="degC/s" > ttrd_ldf + ttrd_zdf - ttrd_zdfp </field> 
     720      <field id="strd_iso"      long_name="salinity   -trend: isopycnal diffusion"                             unit="1e-3/s" > strd_ldf + strd_zdf - strd_zdfp </field> 
    678721      <field id="ttrd_zdfp"     long_name="temperature-trend: pure vert. diffusion"   unit="degC/s" /> 
    679722      <field id="strd_zdfp"     long_name="salinity   -trend: pure vert. diffusion"   unit="1e-3/s" /> 
     
    692735      <field id="ttrd_atf"      long_name="temperature-trend: asselin time filter"       unit="degC/s" /> 
    693736      <field id="strd_atf"      long_name="salinity   -trend: asselin time filter"       unit="1e-3/s" /> 
     737      <field id="ttrd_tot"      long_name="temperature-trend: total model trend"         unit="degC/s" /> 
     738      <field id="strd_tot"      long_name="salinity   -trend: total model trend"         unit="1e-3/s" /> 
     739 
     740      <!-- Thickness weighted versions: --> 
     741      <field id="ttrd_xad_e3t"      unit="degC/s * m" >  ttrd_xad * e3t </field> 
     742      <field id="strd_xad_e3t"      unit="1e-3/s * m" >  strd_xad * e3t </field> 
     743      <field id="ttrd_yad_e3t"      unit="degC/s * m" >  ttrd_yad * e3t </field> 
     744      <field id="strd_yad_e3t"      unit="1e-3/s * m" >  strd_yad * e3t </field> 
     745      <field id="ttrd_zad_e3t"      unit="degC/s * m" >  ttrd_zad * e3t </field> 
     746      <field id="strd_zad_e3t"      unit="1e-3/s * m" >  strd_zad * e3t </field> 
     747      <field id="ttrd_ad_e3t"       unit="degC/s * m" >  ttrd_ad  * e3t </field> 
     748      <field id="strd_ad_e3t"       unit="1e-3/s * m" >  strd_ad  * e3t </field> 
     749      <field id="ttrd_totad_e3t"    unit="degC/s * m" >  ttrd_totad  * e3t </field> 
     750      <field id="strd_totad_e3t"    unit="1e-3/s * m" >  strd_totad  * e3t </field> 
     751      <field id="ttrd_ldf_e3t"      unit="degC/s * m" >  ttrd_ldf * e3t </field> 
     752      <field id="strd_ldf_e3t"      unit="1e-3/s * m" >  strd_ldf * e3t </field> 
     753      <field id="ttrd_zdf_e3t"      unit="degC/s * m" >  ttrd_zdf * e3t </field> 
     754      <field id="strd_zdf_e3t"      unit="1e-3/s * m" >  strd_zdf * e3t </field> 
     755      <field id="ttrd_evd_e3t"      unit="degC/s * m" >  ttrd_evd * e3t </field> 
     756      <field id="strd_evd_e3t"      unit="1e-3/s * m" >  strd_evd * e3t </field> 
     757 
     758      <!-- ln_traldf_iso=T only (iso-neutral diffusion) --> 
     759      <field id="ttrd_iso_e3t"      unit="degC/s * m"  >  ttrd_iso * e3t </field> 
     760      <field id="strd_iso_e3t"      unit="1e-3/s * m"  >  strd_iso * e3t </field> 
     761      <field id="ttrd_zdfp_e3t"     unit="degC/s * m"  >  ttrd_zdfp * e3t </field> 
     762      <field id="strd_zdfp_e3t"     unit="1e-3/s * m"  >  strd_zdfp * e3t </field> 
     763 
     764      <!-- --> 
     765      <field id="ttrd_dmp_e3t"      unit="degC/s * m"  >  ttrd_dmp * e3t </field> 
     766      <field id="strd_dmp_e3t"      unit="1e-3/s * m"  >  strd_dmp * e3t </field> 
     767      <field id="ttrd_bbl_e3t"      unit="degC/s * m"  >  ttrd_bbl * e3t </field> 
     768      <field id="strd_bbl_e3t"      unit="1e-3/s * m"  >  strd_bbl * e3t </field> 
     769      <field id="ttrd_npc_e3t"      unit="degC/s * m"  >  ttrd_npc * e3t </field> 
     770      <field id="strd_npc_e3t"      unit="1e-3/s * m"  >  strd_npc * e3t </field> 
     771      <field id="ttrd_qns_e3t"      unit="degC/s * m"  >  ttrd_qns * e3t_surf </field> 
     772      <field id="strd_cdt_e3t"      unit="degC/s * m"  >  strd_cdt * e3t_surf </field> 
     773      <field id="ttrd_qsr_e3t"      unit="degC/s * m"  >  ttrd_qsr * e3t </field> 
     774      <field id="ttrd_bbc_e3t"      unit="degC/s * m"  >  ttrd_bbc * e3t </field> 
     775      <field id="ttrd_atf_e3t"      unit="degC/s * m"  >  ttrd_atf * e3t </field> 
     776      <field id="strd_atf_e3t"      unit="1e-3/s * m"  >  strd_atf * e3t </field> 
     777      <field id="ttrd_tot_e3t"      unit="degC/s * m"  >  ttrd_tot * e3t </field> 
     778      <field id="strd_tot_e3t"      unit="1e-3/s * m"  >  strd_tot * e3t </field> 
     779 
    694780 
    695781      <!-- variables available with ln_KE_trd --> 
     
    785871 
    786872     <field_group id="ptrc_T" grid_ref="grid_T_3D"> 
     873       <!-- PISCES standard : variables available with ln_p4z  --> 
    787874       <field id="DIC"          long_name="Dissolved inorganic Concentration"        unit="mmol/m3" /> 
    788        <field id="DIC_E3T"      long_name="DIC * E3T"                                unit="mmol/m2" > DIC * e3t </field > 
     875       <field id="DIC_e3t"      long_name="DIC * e3t"                                unit="mmol/m2" > DIC * e3t </field > 
    789876       <field id="Alkalini"     long_name="Total Alkalinity Concentration"           unit="mmol/m3" /> 
    790        <field id="Alkalini_E3T" long_name="Alkalini * E3T"                           unit="mmol/m2"  > Alkalini * e3t </field > 
     877       <field id="Alkalini_e3t" long_name="Alkalini * e3t"                           unit="mmol/m2"  > Alkalini * e3t </field > 
    791878       <field id="O2"           long_name="Oxygen Concentration"                     unit="mmol/m3" /> 
    792        <field id="O2_E3T"       long_name="O2 * E3T"                                 unit="mmol/m2"  > O2 * e3t </field > 
     879       <field id="O2_e3t"       long_name="O2 * e3t"                                 unit="mmol/m2"  > O2 * e3t </field > 
    793880       <field id="CaCO3"        long_name="Calcite Concentration"                    unit="mmol/m3" /> 
    794        <field id="CaCO3_E3T"    long_name="CaCO3 * E3T"                              unit="mmol/m2"  > CaCO3 * e3t </field > 
     881       <field id="CaCO3_e3t"    long_name="CaCO3 * e3t"                              unit="mmol/m2"  > CaCO3 * e3t </field > 
    795882       <field id="PO4"          long_name="Phosphate Concentration"                  unit="mmol/m3" /> 
    796        <field id="PO4_E3T"      long_name="PO4 * E3T"                                unit="mmol/m2"  > PO4 * e3t </field > 
     883       <field id="PO4_e3t"      long_name="PO4 * e3t"                                unit="mmol/m2"  > PO4 * e3t </field > 
    797884       <field id="POC"          long_name="Small organic carbon Concentration"       unit="mmol/m3" /> 
    798        <field id="POC_E3T"      long_name="POC * E3T"                                unit="mmol/m2"  > POC * e3t </field > 
     885       <field id="POC_e3t"      long_name="POC * e3t"                                unit="mmol/m2"  > POC * e3t </field > 
    799886       <field id="Si"           long_name="Silicate Concentration"                   unit="mmol/m3" /> 
    800        <field id="Si_E3T"       long_name="Si * E3T"                                 unit="mmol/m2"  > Si * e3t </field > 
     887       <field id="Si_e3t"       long_name="Si * e3t"                                 unit="mmol/m2"  > Si * e3t </field > 
    801888       <field id="PHY"          long_name="(Nano)Phytoplankton Concentration"        unit="mmol/m3" /> 
    802        <field id="PHY_E3T"      long_name="PHY * E3T"                                unit="mmol/m2"  > PHY * e3t </field > 
     889       <field id="PHY_e3t"      long_name="PHY * e3t"                                unit="mmol/m2"  > PHY * e3t </field > 
    803890       <field id="ZOO"          long_name="(Micro)Zooplankton Concentration"         unit="mmol/m3" /> 
    804        <field id="ZOO_E3T"      long_name="ZOO2 * E3T"                               unit="mmol/m2"  > ZOO * e3t </field > 
     891       <field id="ZOO_e3t"      long_name="ZOO2 * e3t"                               unit="mmol/m2"  > ZOO * e3t </field > 
    805892       <field id="DOC"          long_name="Dissolved organic Concentration"          unit="mmol/m3" /> 
    806        <field id="DOC_E3T"      long_name="DOC * E3T"                                unit="mmol/m2"  > DOC * e3t </field > 
     893       <field id="DOC_e3t"      long_name="DOC * e3t"                                unit="mmol/m2"  > DOC * e3t </field > 
    807894       <field id="PHY2"         long_name="Diatoms Concentration"                    unit="mmol/m3" /> 
    808        <field id="PHY2_E3T"     long_name="PHY2 * E3T"                               unit="mmol/m2"  > PHY2 * e3t </field > 
     895       <field id="PHY2_e3t"     long_name="PHY2 * e3t"                               unit="mmol/m2"  > PHY2 * e3t </field > 
    809896       <field id="ZOO2"         long_name="Mesozooplankton Concentration"            unit="mmol/m3" /> 
    810        <field id="ZOO2_E3T"     long_name="ZOO2 * E3T"                               unit="mmol/m2"  > ZOO2 * e3t </field > 
     897       <field id="ZOO2_e3t"     long_name="ZOO2 * e3t"                               unit="mmol/m2"  > ZOO2 * e3t </field > 
    811898       <field id="DSi"          long_name="Diatoms Silicate Concentration"           unit="mmol/m3" /> 
    812        <field id="DSi_E3T"      long_name="Dsi * E3T"                                unit="mmol/m2"  > DSi * e3t </field > 
     899       <field id="DSi_e3t"      long_name="Dsi * e3t"                                unit="mmol/m2"  > DSi * e3t </field > 
    813900       <field id="Fer"          long_name="Dissolved Iron Concentration"             unit="mmol/m3" /> 
    814        <field id="Fer_E3T"      long_name="Fer * E3T"                                unit="mmol/m2"  > Fer * e3t </field > 
     901       <field id="Fer_e3t"      long_name="Fer * e3t"                                unit="mmol/m2"  > Fer * e3t </field > 
    815902       <field id="BFe"          long_name="Big iron particles Concentration"         unit="mmol/m3" /> 
    816        <field id="BFe_E3T"      long_name="BFe * E3T"                                unit="mmol/m2"  > BFe * e3t </field > 
     903       <field id="BFe_e3t"      long_name="BFe * e3t"                                unit="mmol/m2"  > BFe * e3t </field > 
    817904       <field id="GOC"          long_name="Big organic carbon Concentration"         unit="mmol/m3" /> 
    818        <field id="GOC_E3T"      long_name="GOC * E3T"                                unit="mmol/m2"  > GOC * e3t </field > 
     905       <field id="GOC_e3t"      long_name="GOC * e3t"                                unit="mmol/m2"  > GOC * e3t </field > 
    819906       <field id="SFe"          long_name="Small iron particles Concentration"       unit="mmol/m3" /> 
    820        <field id="SFe_E3T"      long_name="SFe * E3T"                                unit="mmol/m2"  > SFe * e3t </field > 
     907       <field id="SFe_e3t"      long_name="SFe * e3t"                                unit="mmol/m2"  > SFe * e3t </field > 
    821908       <field id="DFe"          long_name="Diatoms iron  Concentration"              unit="mmol/m3" /> 
    822        <field id="DFe_E3T"      long_name="DFe * E3T"                                unit="mmol/m2"  > DFe * e3t </field > 
     909       <field id="DFe_e3t"      long_name="DFe * e3t"                                unit="mmol/m2"  > DFe * e3t </field > 
    823910       <field id="GSi"          long_name="Sinking biogenic Silicate Concentration"  unit="mmol/m3" /> 
    824        <field id="GSi_E3T"      long_name="GSi * E3T"                                unit="mmol/m2"  > GSi * e3t </field > 
     911       <field id="GSi_e3t"      long_name="GSi * e3t"                                unit="mmol/m2"  > GSi * e3t </field > 
    825912       <field id="NFe"          long_name="Nano iron Concentration"                  unit="mmol/m3" /> 
    826        <field id="NFe_E3T"      long_name="NFe * E3T"                                unit="mmol/m2"  > NFe * e3t </field > 
     913       <field id="NFe_e3t"      long_name="NFe * e3t"                                unit="mmol/m2"  > NFe * e3t </field > 
    827914       <field id="NCHL"         long_name="Nano chlorophyl Concentration"            unit="mg/m3"   /> 
    828        <field id="NCHL_E3T"     long_name="NCHL * E3T"                               unit="mmol/m2"  > NCHL * e3t </field > 
     915       <field id="NCHL_e3t"     long_name="NCHL * e3t"                               unit="mmol/m2"  > NCHL * e3t </field > 
    829916       <field id="DCHL"         long_name="Diatoms chlorophyl Concentration"         unit="mg/m3"   /> 
    830        <field id="DCHL_E3T"     long_name="DCHL * E3T"                               unit="mmol/m2"  > DCHL * e3t </field > 
     917       <field id="DCHL_e3t"     long_name="DCHL * e3t"                               unit="mmol/m2"  > DCHL * e3t </field > 
    831918       <field id="NO3"          long_name="Nitrate Concentration"                    unit="mmol/m3" /> 
    832        <field id="NO3_E3T"      long_name="NO3 * E3T"                                unit="mmol/m2"  > NO3 * e3t </field > 
     919       <field id="NO3_e3t"      long_name="NO3 * e3t"                                unit="mmol/m2"  > NO3 * e3t </field > 
    833920       <field id="NH4"          long_name="Ammonium Concentration"                   unit="mmol/m3" /> 
    834        <field id="NH4_E3T"      long_name="NH4 * E3T"                                unit="mmol/m2"  > NH4 * e3t </field > 
    835  
    836        <!-- PISCES with Kriest parametisation : variables available with key_kriest --> 
    837        <field id="Num"         long_name="Number of organic particles"              unit="1" /> 
    838        <field id="Num_E3T"     long_name="Num * E3T"                                unit="m"  > Num * e3t </field > 
    839  
    840        <!-- PISCES light : variables available with key_pisces_reduced --> 
     921       <field id="NH4_e3t"      long_name="NH4 * e3t"                                unit="mmol/m2"  > NH4 * e3t </field > 
     922 
     923       <!-- PISCES quota : variables available with ln_p5z  --> 
     924 
     925       <field id="DON"          long_name="Dissolved organic N Concentration"        unit="mmol/m3" /> 
     926       <field id="DON_e3t"      long_name="DON * e3t"                                unit="mmol/m2"  > DON * e3t </field > 
     927       <field id="DOP"          long_name="Dissolved organic P Concentration"        unit="mmol/m3" /> 
     928       <field id="DOP_e3t"      long_name="DOP * e3t"                                unit="mmol/m2"  > DOP * e3t </field > 
     929       <field id="PON"          long_name="Small PON Concentration"                  unit="mmol/m3" /> 
     930       <field id="PON_e3t"      long_name="PON * e3t"                                unit="mmol/m2"  > PON * e3t </field > 
     931       <field id="POP"          long_name="Small POP Concentration"                  unit="mmol/m3" /> 
     932       <field id="POP_e3t"      long_name="POP * e3t"                                unit="mmol/m2"  > POP * e3t </field > 
     933       <field id="GON"          long_name="Big PON Concentration"                    unit="mmol/m3" /> 
     934       <field id="GON_e3t"      long_name="GON * e3t"                                unit="mmol/m2"  > GON * e3t </field > 
     935       <field id="GOP"          long_name="Big POP Concentration"                    unit="mmol/m3" /> 
     936       <field id="GOP_e3t"      long_name="GOP * e3t"                                unit="mmol/m2"  > GOP * e3t </field > 
     937       <field id="PHYN"         long_name="Nanophytoplankton N biomass"              unit="mmol/m3" /> 
     938       <field id="PHYN_e3t"     long_name="PHYN * e3t"                               unit="mmol/m2"  > PHYN * e3t </field > 
     939       <field id="PHYP"         long_name="Nanophytoplankton P biomass"              unit="mmol/m3" /> 
     940       <field id="PHYP_e3t"     long_name="PHYP * e3t"                               unit="mmol/m2"  > PHYP * e3t </field > 
     941       <field id="DIAN"         long_name="Diatoms N biomass"                        unit="mmol/m3" /> 
     942       <field id="DIAN_e3t"     long_name="DIAN * e3t"                               unit="mmol/m2"  > DIAN * e3t </field > 
     943       <field id="DIAP"         long_name="Diatoms P biomass"                        unit="mmol/m3" /> 
     944       <field id="DIAP_e3t"     long_name="DIAP * e3t"                               unit="mmol/m2"  > DIAP * e3t </field > 
     945       <field id="PIC"          long_name="Picophytoplankton C biomass"              unit="mmol/m3" /> 
     946       <field id="PIC_e3t"      long_name="PIC * e3t"                                unit="mmol/m2"  > PIC * e3t </field > 
     947       <field id="PICN"         long_name="Picophytoplankton N biomass"              unit="mmol/m3" /> 
     948       <field id="PICN_e3t"     long_name="PICN * e3t"                               unit="mmol/m2"  > PICN * e3t </field > 
     949       <field id="PICP"         long_name="Picophytoplankton P biomass"              unit="mmol/m3" /> 
     950       <field id="PICP_e3t"     long_name="PICP * e3t"                               unit="mmol/m2"  > PICP * e3t </field > 
     951       <field id="PFe"          long_name="Picophytoplankton Fe biomass"             unit="mmol/m3" /> 
     952       <field id="PFe_e3t"      long_name="PFe * e3t"                                unit="mmol/m2"  > PFe * e3t </field > 
     953       <field id="PCHL"         long_name="Picophytoplankton Chl biomass"            unit="mg/m3" /> 
     954       <field id="PCHL_e3t"     long_name="PCHL * e3t"                               unit="mmol/m2"  > PCHL * e3t </field > 
     955 
     956      <!-- PISCES with ligand parametisation : variables available namelist paramter ln_ligand --> 
     957       <field id="LGW"         long_name="Weak ligands concentration"                unit="mmol/m3" /> 
     958       <field id="LGW_e3t"     long_name="LGW * e3t"                                 unit="mmol/m2"  > LGW * e3t </field > 
     959       <field id="LFe"         long_name="Lithogenic iron concentration"             unit="mmol/m3" /> 
     960       <field id="LFe_e3t"     long_name="LFe * e3t"                                 unit="mmol/m2"  > LFe * e3t </field > 
     961 
     962       <!-- PISCES light : variables available with ln_p2z  --> 
    841963       <field id="DET"         long_name="Detritus"                                 unit="mmol-N/m3" /> 
    842        <field id="DET_E3T"     long_name="DET * E3T"                                unit="mmol-N/m2"  > DET * e3t </field > 
     964       <field id="DET_e3t"     long_name="DET * e3t"                                unit="mmol-N/m2"  > DET * e3t </field > 
    843965       <field id="DOM"         long_name="Dissolved Organic Matter"                 unit="mmol-N/m3" /> 
    844        <field id="DOM_E3T"     long_name="DOM * E3T"                                unit="mmol-N/m2"  > DOM * e3t </field > 
    845  
    846        <!-- CFC11 : variables available with key_cfc --> 
    847        <field id="CFC11"       long_name="CFC-11 Concentration"                     unit="umol/m3" /> 
    848        <field id="CFC11_E3T"   long_name="CFC11 * E3T"                              unit="umol/m2"  > CFC11 * e3t </field > 
    849        <!-- Bomb C14 : variables available with key_c14b --> 
    850        <field id="C14B"     long_name="Bomb C14 Concentration"                      unit="1"         /> 
    851        <field id="C14B_E3T"    long_name="C14B * E3T"                               unit="m"  > C14B * e3t </field > 
     966       <field id="DOM_e3t"     long_name="DOM * e3t"                                unit="mmol-N/m2"  > DOM * e3t </field > 
     967 
     968       <!-- CFC11 : variables available with ln_cfc11 --> 
     969       <field id="CFC11"       long_name="Chlorofluoro carbon11 Concentration"      unit="umol/m3" /> 
     970       <field id="CFC11_e3t"   long_name="CFC11 * e3t"                              unit="umol/m2"  > CFC11 * e3t </field > 
     971 
     972       <!-- CFC12 : variables available with ln_cfc12 --> 
     973       <field id="CFC12"       long_name="Chlorofluoro carbon12 Concentration"      unit="umol/m3" /> 
     974       <field id="CFC12_e3t"   long_name="CFC12 * e3t"                              unit="umol/m2"  > CFC12 * e3t </field > 
     975 
     976       <!-- SF6 : variables available with ln_sf6 --> 
     977       <field id="SF6"       long_name="Sulfur hexafluoride Concentration"      unit="umol/m3" /> 
     978       <field id="SF6_e3t"   long_name="SF6 * e3t"                              unit="umol/m2"  > SF6 * e3t </field > 
     979 
     980       <!-- C14 : variables available with ln_c14 --> 
     981       <field id="RC14"        long_name="Radiocarbon ratio"                        unit="-"         /> 
     982       <field id="RC14_e3t"    long_name="RC14 * e3t"                               unit="m"  > RC14 * e3t </field > 
     983 
     984       <!-- AGE : variables available with ln_age --> 
     985       <field id="Age"        long_name="Sea water age since surface contact"       unit="yr"         /> 
     986       <field id="Age_e3t"    long_name="Age * e3t"                                 unit="yr * m"  > Age * e3t </field > 
     987 
    852988     </field_group> 
    853989 
     
    860996       <field id="PAR"         long_name="Photosynthetically Available Radiation"  unit="W/m2"       grid_ref="grid_T_3D" /> 
    861997       <field id="PARDM"       long_name="Daily mean PAR"                          unit="W/m2"       grid_ref="grid_T_3D" /> 
    862        <field id="PPPHY"       long_name="Primary production of nanophyto"         unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    863        <field id="PPPHY2"      long_name="Primary production of diatoms"           unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    864        <field id="PPNEWN"      long_name="New Primary production of nanophyto"     unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    865        <field id="PPNEWD"      long_name="New Primary production of diatoms"       unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    866        <field id="PBSi"        long_name="Primary production of Si diatoms"        unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    867        <field id="PFeN"        long_name="Primary production of nano iron"         unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
     998       <field id="PPPHYN"      long_name="Primary production of nanophyto"         unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     999       <field id="PPPHYP"      long_name="Primary production of picophyto"         unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1000       <field id="PPPHYD"      long_name="Primary production of diatoms"           unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1001       <field id="PPNEWN"      long_name="New Primary production of nanophyto"     unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1002       <field id="PPNEWP"      long_name="New Primary production of picophyto"     unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1003       <field id="PPNEWD"      long_name="New Primary production of diatoms"       unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1004       <field id="PBSi"        long_name="Primary production of Si diatoms"        unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1005       <field id="PFeN"        long_name="Primary production of nano iron"         unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
     1006       <field id="PFeP"        long_name="Primary production of pico iron"         unit="molC/m3/s"  grid_ref="grid_T_3D" /> 
    8681007       <field id="PFeD"        long_name="Primary production of diatoms iron"      unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    8691008       <field id="xfracal"     long_name="Calcifying fraction"                     unit="1"          grid_ref="grid_T_3D" /> 
     
    8741013       <field id="REMIN"       long_name="Oxic remineralization of OM"             unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    8751014       <field id="DENIT"       long_name="Anoxic remineralization of OM"           unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
     1015       <field id="REMINP"       long_name="Oxic remineralization rate of POC"      unit="d-1"        grid_ref="grid_T_3D" /> 
     1016       <field id="REMING"       long_name="Oxic remineralization rate of GOC"      unit="d-1"        grid_ref="grid_T_3D" /> 
    8761017       <field id="Nfix"        long_name="Nitrogen fixation"                       unit="mol/m3/s"   grid_ref="grid_T_3D" /> 
    8771018       <field id="Mumax"       long_name="Maximum growth rate"                     unit="s-1"        grid_ref="grid_T_3D" /> 
    8781019       <field id="MuN"         long_name="Realized growth rate for nanophyto"      unit="s-1"        grid_ref="grid_T_3D" /> 
     1020       <field id="MuP"         long_name="Realized growth rate for picophyto"      unit="s-1"        grid_ref="grid_T_3D" /> 
    8791021       <field id="MuD"         long_name="Realized growth rate for diatomes"       unit="s-1"        grid_ref="grid_T_3D" /> 
     1022       <field id="MunetN"      long_name="Net growth rate for nanophyto"           unit="s-1"        grid_ref="grid_T_3D" /> 
     1023       <field id="MunetP"      long_name="Net growth rate for picophyto"           unit="s-1"        grid_ref="grid_T_3D" /> 
     1024       <field id="MunetD"      long_name="Net growth rate for diatomes"            unit="s-1"        grid_ref="grid_T_3D" /> 
    8801025       <field id="LNnut"       long_name="Nutrient limitation term in Nanophyto"   unit=""           grid_ref="grid_T_3D" /> 
     1026       <field id="LPnut"       long_name="Nutrient limitation term in Picophyto"   unit="-"          grid_ref="grid_T_3D" /> 
    8811027       <field id="LDnut"       long_name="Nutrient limitation term in Diatoms"     unit=""           grid_ref="grid_T_3D" /> 
    8821028       <field id="LNFe"        long_name="Iron limitation term in Nanophyto"       unit=""           grid_ref="grid_T_3D" /> 
     1029       <field id="LPFe"        long_name="Iron limitation term in Picophyto"       unit="-"          grid_ref="grid_T_3D" /> 
    8831030       <field id="LDFe"        long_name="Iron limitation term in Diatoms"         unit=""           grid_ref="grid_T_3D" /> 
    8841031       <field id="LNlight"     long_name="Light limitation term in Nanophyto"      unit=""           grid_ref="grid_T_3D" /> 
     1032       <field id="LPlight"     long_name="Light limitation term in Picophyto"      unit="-"          grid_ref="grid_T_3D" /> 
    8851033       <field id="LDlight"     long_name="Light limitation term in Diatoms"        unit=""           grid_ref="grid_T_3D" /> 
     1034       <field id="SIZEN"       long_name="Mean relative size of nanophyto."        unit="-"          grid_ref="grid_T_3D" /> 
     1035       <field id="SIZEP"       long_name="Mean relative size of picophyto."        unit="-"          grid_ref="grid_T_3D" /> 
     1036       <field id="SIZED"       long_name="Mean relative size of diatoms"           unit="-"          grid_ref="grid_T_3D" /> 
    8861037       <field id="Fe2"         long_name="Iron II concentration"                   unit="nmol/m3"    grid_ref="grid_T_3D" /> 
    8871038       <field id="Fe3"         long_name="Iron III concentration"                  unit="nmol/m3"    grid_ref="grid_T_3D" /> 
     
    8961047       <field id="Sdenit"      long_name="Nitrate reduction in the sediments"      unit="mol/m2/s"                        /> 
    8971048       <field id="Ironice"     long_name="Iron input/uptake due to sea ice"        unit="mol/m2/s"                        /> 
     1049       <field id="SedCal"      long_name="Calcite burial in the sediments"         unit="molC/m2/s"                       /> 
     1050       <field id="SedSi"       long_name="Silicon burial in the sediments"         unit="molSi/m2/s"                      /> 
     1051       <field id="SedC"        long_name="Organic C burial in the sediments"       unit="molC/m2/s"                       /> 
    8981052       <field id="HYDR"        long_name="Iron input from hydrothemal vents"       unit="mol/m2/s"   grid_ref="grid_T_3D" /> 
    8991053       <field id="EPC100"      long_name="Export of carbon particles at 100 m"     unit="mol/m2/s"                        /> 
     
    9141068       <field id="Ironsed"     long_name="Iron deposition from sediment"           unit="mol/m2/s"   grid_ref="grid_T_3D" /> 
    9151069 
    916  
    917        <!-- PISCES with Kriest parametisation : variables available with key_kriest --> 
    918        <field id="EPN100"      long_name="Particulate number flux at 100 m"        unit="mol/m2/s"                        /> 
    919        <field id="EXPN"        long_name="Particulate number flux"                 unit="mol/m2/s"   grid_ref="grid_T_3D" /> 
    920        <field id="XNUM"        long_name="Number of particles in aggregats"        unit="1"          grid_ref="grid_T_3D" /> 
    921        <field id="WSC"         long_name="sinking speed of mass flux"              unit="m2/s"       grid_ref="grid_T_3D" /> 
    922        <field id="WSN"         long_name="sinking speed of number flux"            unit="m2/s"       grid_ref="grid_T_3D" /> 
    923  
    9241070       <!-- dbio_T on T grid : variables available with key_diaar5 --> 
    9251071       <field id="TPP"         long_name="Total Primary production of phyto"                   unit="mol/m3/s"  grid_ref="grid_T_3D" /> 
     
    9301076       <field id="ZO2MIN"      long_name="Depth of oxygen minimum concentration"               unit="m"                              /> 
    9311077       <field id="INTNFIX"     long_name="Nitrogen fixation rate : vert. integrated"           unit="mol/m2/s"                       /> 
    932        <field id="INTPPPHY"    long_name="Vertically integrated primary production by nanophy" unit="mol/m2/s"                       /> 
    933        <field id="INTPPPHY2"   long_name="Vertically integrated primary production by diatom"  unit="mol/m2/s"                       /> 
     1078       <field id="INTPPPHYN"    long_name="Vertically integrated primary production by nanophy" unit="mol/m2/s"                       /> 
     1079       <field id="INTPPPHYD"   long_name="Vertically integrated primary production by diatom"  unit="mol/m2/s"                       /> 
    9341080       <field id="INTPP"       long_name="Vertically integrated primary production by phyto"   unit="mol/m2/s"                       /> 
    9351081       <field id="INTPNEW"     long_name="Vertically integrated new primary production"        unit="mol/m2/s"                       /> 
     
    9611107       <field id="TDETSED"     long_name="TDETSED"                                 unit=""  />  
    9621108 
    963        <!-- CFC11 : variables available with key_cfc --> 
    964        <field id="qtrCFC11"    long_name="Air-sea flux of CFC-11"                  unit="mol/m2/s"   /> 
    965        <field id="qintCFC11"   long_name="Cumulative air-sea flux of CFC-11"       unit="mol/m2"     /> 
    966  
    967        <!-- Bomb C14 : variables available with key_c14b --> 
    968        <field id="qtrC14b"     long_name="Air-sea flux of Bomb C14"                unit="mol/m2/s"   /> 
    969        <field id="qintC14b"    long_name="Cumulative air-sea flux of Bomb C14"     unit="mol/m2"     /> 
    970        <field id="fdecay"      long_name="Radiactive decay of Bomb C14"            unit="mol/m3"  grid_ref="grid_T_3D"  /> 
     1109       <!-- CFC11 : variables available with ln_cfc11 --> 
     1110       <field id="qtr_CFC11"    long_name="Air-sea flux of CFC-11"                  unit="mol/m2/s"   /> 
     1111       <field id="qint_CFC11"   long_name="Cumulative air-sea flux of CFC-11"       unit="mol/m2"     /> 
     1112 
     1113       <!-- CFC12 : variables available with ln_cfc12 --> 
     1114       <field id="qtr_CFC12"    long_name="Air-sea flux of CFC12"                  unit="mol/m2/s"   /> 
     1115       <field id="qint_CFC12"   long_name="Cumulative air-sea flux of CFC12"       unit="mol/m2"     /> 
     1116 
     1117       <!-- SF6 : variables available with ln_sf6 --> 
     1118       <field id="qtr_SF6"      long_name="Air-sea flux of SF6"                    unit="mol/m2/s"   /> 
     1119       <field id="qint_SF6"     long_name="Cumulative air-sea flux of SF6"         unit="mol/m2"     /> 
     1120 
     1121       <!--  C14 : variables available with ln_c14 --> 
     1122       <field id="DeltaC14"     long_name="Delta C14"                              unit="permil" grid_ref="grid_T_3D"   /> 
     1123       <field id="C14Age"       long_name="Radiocarbon age"                        unit="yr"     grid_ref="grid_T_3D"   /> 
     1124       <field id="RAge"         long_name="Reservoir Age"                          unit="yr"     /> 
     1125       <field id="qtr_C14"      long_name="Air-sea flux of C14"                    unit="1/m2/s"   /> 
     1126       <field id="qint_C14"     long_name="Cumulative air-sea flux of C14"         unit="1/m2"     /> 
    9711127     </field_group> 
    9721128 
    973      <field_group id="PISCES_scalar"  grid_ref="grid_T_2D" > 
    974        <field id="pno3tot"         long_name="global mean nitrate concentration"                  unit="mol/m3"   /> 
     1129     <field_group id="tracer_scalar"  grid_ref="grid_T_2D"  > 
     1130     <!-- PISCES scalar  --> 
     1131       <field id="pno3tot"         long_name="Global mean nitrate concentration"                  unit="mol/m3"   /> 
    9751132       <field id="ppo4tot"         long_name="global mean phosphorus concentration"               unit="mol/m3"   /> 
    976        <field id="psiltot"         long_name="global mean silicate concentration"                 unit="mol/m3"   /> 
    977        <field id="palktot"         long_name="global mean alkalinity concentration"               unit="mol/m3"   /> 
    978        <field id="pfertot"         long_name="global mean iron concentration"                     unit="mol/m3"   /> 
    979        <field id="tcflx"           long_name="total Flux of Carbon out of the ocean"              unit="mol/s"   /> 
    980        <field id="tcflxcum"        long_name="cumulative total Flux of Carbon out of the ocean"   unit="mol/s"   /> 
    981        <field id="tcexp"           long_name="total Carbon export at 100m"                        unit="mol/s"   /> 
    982        <field id="tintpp"          long_name="global total integrated primary production"         unit="mol/s"   /> 
    983        <field id="tnfix"           long_name="global total nitrogen fixation"                     unit="mol/s"   /> 
     1133       <field id="psiltot"         long_name="Global mean silicate concentration"                 unit="mol/m3"   /> 
     1134       <field id="palktot"         long_name="Global mean alkalinity concentration"               unit="mol/m3"   /> 
     1135       <field id="pfertot"         long_name="Global mean iron concentration"                     unit="mol/m3"   /> 
     1136       <field id="tcflx"           long_name="Total Flux of Carbon out of the ocean"              unit="mol/s"   /> 
     1137       <field id="tcflxcum"        long_name="Cumulative total Flux of Carbon out of the ocean"   unit="mol/s"   /> 
     1138       <field id="tcexp"           long_name="Total Carbon export at 100m"                        unit="mol/s"   /> 
     1139       <field id="tintpp"          long_name="Global total integrated primary production"         unit="mol/s"   /> 
     1140       <field id="tnfix"           long_name="Global total nitrogen fixation"                     unit="mol/s"   /> 
    9841141       <field id="tdenit"          long_name="Total denitrification"                              unit="mol/s"   /> 
     1142     <!-- C14 scalar  --> 
     1143       <field id="AtmCO2"          long_name="Global atmospheric CO2"                             unit="ppm"   /> 
     1144       <field id="AtmC14"          long_name="Global atmospheric DeltaC14"                        unit="permil"   /> 
     1145       <field id="K_C14"           long_name="Global 14C/C exchange velocity"                     unit="m/yr"   /> 
     1146       <field id="K_CO2"           long_name="Global CO2 piston velocity"                         unit="cm/h"   /> 
     1147       <field id="C14Inv"          long_name="global Radiocarbon ocean inventory"                 unit="10^26 atoms"   /> 
    9851148     </field_group> 
    9861149 
  • branches/2016/dev_merge_2016/NEMOGCM/CONFIG/cfg.txt

    r7421 r7425  
    11GYRE_PISCES OPA_SRC TOP_SRC 
    2 GYRE_XIOS OPA_SRC 
    32ORCA2_SAS_LIM OPA_SRC SAS_SRC LIM_SRC_2 NST_SRC 
    43C1D_PAPA OPA_SRC 
     
    1817SAS_BIPER OPA_SRC SAS_SRC LIM_SRC_3 NST_SRC 
    1918ORCA2_SAS_LIM3 OPA_SRC SAS_SRC LIM_SRC_3 NST_SRC 
     19GYRE_XIOS OPA_SRC 
  • branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r7421 r7425  
    9494      CHARACTER(len=*), INTENT(in)  :: cdname 
    9595#if defined key_iomput 
    96       TYPE(xios_time)   :: dtime    = xios_time(0, 0, 0, 0, 0, 0) 
    97       CHARACTER(len=19) :: cldate  
     96 
     97#if defined key_xios2 
     98      TYPE(xios_duration) :: dtime    = xios_duration(0, 0, 0, 0, 0, 0) 
     99      TYPE(xios_date)     :: start_date 
     100#else 
     101      TYPE(xios_time)     :: dtime    = xios_time(0, 0, 0, 0, 0, 0) 
     102      CHARACTER(len=19)   :: cldate  
     103#endif 
    98104      CHARACTER(len=10) :: clname 
    99105      INTEGER           :: ji, jkmin 
    100106      ! 
    101       REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z_bnds 
    102       !!---------------------------------------------------------------------- 
    103  
    104       ALLOCATE( z_bnds(jpk,2) ) 
     107      REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zt_bnds, zw_bnds 
     108      !!---------------------------------------------------------------------- 
     109 
     110#if  defined key_xios2 
     111      ALLOCATE( zt_bnds(2,jpk), zw_bnds(2,jpk) ) 
     112#else 
     113      ALLOCATE( zt_bnds(jpk,2), zw_bnds(jpk,2) ) 
     114#endif 
    105115 
    106116      clname = cdname 
     
    109119      CALL iom_swap( cdname ) 
    110120 
     121 
     122#if  defined key_xios2 
     123      ! Calendar type is now defined in xml file  
     124      SELECT CASE ( nleapy )        ! Choose calendar for IOIPSL 
     125      CASE ( 1)   ; CALL xios_define_calendar( TYPE = "Gregorian", time_origin = xios_date(1900,01,01,00,00,00), & 
     126          &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
     127      CASE ( 0)   ; CALL xios_define_calendar( TYPE = "NoLeap"   , time_origin = xios_date(1900,01,01,00,00,00), & 
     128          &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
     129      CASE (30)   ; CALL xios_define_calendar( TYPE = "D360"     , time_origin = xios_date(1900,01,01,00,00,00), & 
     130          &                                    start_date = xios_date(nyear,nmonth,nday,0,0,0) ) 
     131      END SELECT 
     132#else 
    111133      ! calendar parameters 
    112134      SELECT CASE ( nleapy )        ! Choose calendar for IOIPSL 
     
    118140      CALL xios_set_context_attr(TRIM(clname), start_date=cldate ) 
    119141 
     142#endif 
    120143      ! horizontal grid definition 
    121144      CALL set_scalar 
     
    171194      ! Add vertical grid bounds 
    172195      jkmin = MIN(2,jpk)  ! in case jpk=1 (i.e. sas2D) 
    173       z_bnds(:      ,1) = gdepw_1d(:) 
    174       z_bnds(1:jpkm1,2) = gdepw_1d(jkmin:jpk) 
    175       z_bnds(jpk:   ,2) = gdepw_1d(jpk) + e3t_1d(jpk) 
    176       CALL iom_set_axis_attr( "deptht", bounds=z_bnds ) 
    177       CALL iom_set_axis_attr( "depthu", bounds=z_bnds ) 
    178       CALL iom_set_axis_attr( "depthv", bounds=z_bnds ) 
    179       z_bnds(:        ,2) = gdept_1d(:) 
    180       z_bnds(jkmin:jpk,1) = gdept_1d(1:jpkm1) 
    181       z_bnds(1        ,1) = gdept_1d(1) - e3w_1d(1) 
    182       CALL iom_set_axis_attr( "depthw", bounds=z_bnds ) 
     196#if defined key_xios2 
     197      zt_bnds(2,:        ) = gdept_1d(:) 
     198      zt_bnds(1,jkmin:jpk) = gdept_1d(1:jpkm1) 
     199      zt_bnds(1,1        ) = gdept_1d(1) - e3w_1d(1) 
     200      zw_bnds(1,:        ) = gdepw_1d(:) 
     201      zw_bnds(2,1:jpkm1  ) = gdepw_1d(jkmin:jpk) 
     202      zw_bnds(2,jpk:     ) = gdepw_1d(jpk) + e3t_1d(jpk) 
     203#else 
     204      zt_bnds(:        ,2) = gdept_1d(:) 
     205      zt_bnds(jkmin:jpk,1) = gdept_1d(1:jpkm1) 
     206      zt_bnds(1        ,1) = gdept_1d(1) - e3w_1d(1) 
     207      zw_bnds(:        ,1) = gdepw_1d(:) 
     208      zw_bnds(1:jpkm1  ,2) = gdepw_1d(jkmin:jpk) 
     209      zw_bnds(jpk:     ,2) = gdepw_1d(jpk) + e3t_1d(jpk) 
     210#endif 
     211      CALL iom_set_axis_attr( "deptht", bounds=zt_bnds ) 
     212      CALL iom_set_axis_attr( "depthu", bounds=zt_bnds ) 
     213      CALL iom_set_axis_attr( "depthv", bounds=zt_bnds ) 
     214      CALL iom_set_axis_attr( "depthw", bounds=zw_bnds ) 
     215 
    183216 
    184217# if defined key_floats 
     
    202235      CALL xios_update_calendar(0) 
    203236 
    204       DEALLOCATE( z_bnds ) 
     237      DEALLOCATE( zt_bnds, zw_bnds ) 
    205238 
    206239#endif 
     
    11521185      REAL(wp), DIMENSION(:)   , OPTIONAL, INTENT(in) ::   lonvalue, latvalue 
    11531186      REAL(wp), DIMENSION(:,:) , OPTIONAL, INTENT(in) ::   bounds_lon, bounds_lat, area 
    1154       LOGICAL,  DIMENSION(:,:) , OPTIONAL, INTENT(in) ::   mask 
    1155  
     1187#if defined key_xios2 
     1188      LOGICAL, DIMENSION(:)   , OPTIONAL, INTENT(in) ::   mask 
     1189#else 
     1190      LOGICAL, DIMENSION(:,:) , OPTIONAL, INTENT(in) ::   mask 
     1191#endif 
     1192 
     1193 
     1194#if defined key_xios2 
     1195      IF ( xios_is_valid_domain     (cdid) ) THEN 
     1196         CALL xios_set_domain_attr     ( cdid, ni_glo=ni_glo, nj_glo=nj_glo, ibegin=ibegin, jbegin=jbegin, ni=ni, nj=nj,   & 
     1197            &    data_dim=data_dim, data_ibegin=data_ibegin, data_ni=data_ni, data_jbegin=data_jbegin, data_nj=data_nj ,   & 
     1198            &    lonvalue_1D=lonvalue, latvalue_1D=latvalue, mask_1D=mask, nvertex=nvertex, bounds_lon_1D=bounds_lon,      & 
     1199            &    bounds_lat_1D=bounds_lat, area=area, type='curvilinear') 
     1200     ENDIF 
     1201      IF ( xios_is_valid_domaingroup(cdid) ) THEN 
     1202         CALL xios_set_domaingroup_attr( cdid, ni_glo=ni_glo, nj_glo=nj_glo, ibegin=ibegin, jbegin=jbegin, ni=ni, nj=nj,   & 
     1203            &    data_dim=data_dim, data_ibegin=data_ibegin, data_ni=data_ni, data_jbegin=data_jbegin, data_nj=data_nj ,   & 
     1204            &    lonvalue_1D=lonvalue, latvalue_1D=latvalue, mask_1D=mask, nvertex=nvertex, bounds_lon_1D=bounds_lon,      & 
     1205            &    bounds_lat_1D=bounds_lat, area=area, type='curvilinear' ) 
     1206      ENDIF 
     1207#else 
    11561208      IF ( xios_is_valid_domain     (cdid) ) THEN 
    11571209         CALL xios_set_domain_attr     ( cdid, ni_glo=ni_glo, nj_glo=nj_glo, ibegin=ibegin, jbegin=jbegin, ni=ni, nj=nj,   & 
     
    11691221            &    bounds_lat=bounds_lat, area=area ) 
    11701222      ENDIF 
     1223#endif 
    11711224      CALL xios_solve_inheritance() 
    11721225 
    11731226   END SUBROUTINE iom_set_domain_attr 
     1227 
     1228#if defined key_xios2 
     1229  SUBROUTINE iom_set_zoom_domain_attr( cdid, ibegin, jbegin, ni, nj) 
     1230     CHARACTER(LEN=*)                   , INTENT(in) ::   cdid 
     1231     INTEGER                  , OPTIONAL, INTENT(in) ::   ibegin, jbegin, ni, nj 
     1232 
     1233     IF ( xios_is_valid_zoom_domain     (cdid) ) THEN 
     1234         CALL xios_set_zoom_domain_attr     ( cdid, ibegin=ibegin, jbegin=jbegin, ni=ni,    & 
     1235           &   nj=nj) 
     1236    ENDIF 
     1237  END SUBROUTINE iom_set_zoom_domain_attr 
     1238#endif 
    11741239 
    11751240 
     
    11781243      REAL(wp), DIMENSION(:)  , OPTIONAL, INTENT(in) ::   paxis 
    11791244      REAL(wp), DIMENSION(:,:), OPTIONAL, INTENT(in) ::   bounds 
     1245 
     1246#if defined key_xios2 
     1247      IF ( PRESENT(paxis) ) THEN 
     1248         IF ( xios_is_valid_axis     (cdid) )   CALL xios_set_axis_attr     ( cdid, n_glo=SIZE(paxis), value=paxis ) 
     1249         IF ( xios_is_valid_axisgroup(cdid) )   CALL xios_set_axisgroup_attr( cdid, n_glo=SIZE(paxis), value=paxis ) 
     1250      ENDIF 
     1251#else 
    11801252      IF ( PRESENT(paxis) ) THEN 
    11811253         IF ( xios_is_valid_axis     (cdid) )   CALL xios_set_axis_attr     ( cdid, size=SIZE(paxis), value=paxis ) 
    11821254         IF ( xios_is_valid_axisgroup(cdid) )   CALL xios_set_axisgroup_attr( cdid, size=SIZE(paxis), value=paxis ) 
    11831255      ENDIF 
     1256#endif 
    11841257      IF ( xios_is_valid_axis     (cdid) )   CALL xios_set_axis_attr     ( cdid, bounds=bounds ) 
    11851258      IF ( xios_is_valid_axisgroup(cdid) )   CALL xios_set_axisgroup_attr( cdid, bounds=bounds ) 
     
    11901263   SUBROUTINE iom_set_field_attr( cdid, freq_op, freq_offset ) 
    11911264      CHARACTER(LEN=*)          , INTENT(in) ::   cdid 
     1265#if defined key_xios2 
     1266      TYPE(xios_duration),OPTIONAL , INTENT(in) ::   freq_op 
     1267      TYPE(xios_duration),OPTIONAL , INTENT(in) ::   freq_offset 
     1268#else 
    11921269      CHARACTER(LEN=*),OPTIONAL , INTENT(in) ::   freq_op 
    11931270      CHARACTER(LEN=*),OPTIONAL , INTENT(in) ::   freq_offset 
     1271#endif 
    11941272      IF ( xios_is_valid_field     (cdid) )   CALL xios_set_field_attr       & 
    11951273    &     ( cdid, freq_op=freq_op, freq_offset=freq_offset ) 
     
    12111289   SUBROUTINE iom_get_file_attr( cdid, name, name_suffix, output_freq ) 
    12121290      CHARACTER(LEN=*)          , INTENT(in ) ::   cdid 
    1213       CHARACTER(LEN=*),OPTIONAL , INTENT(out) ::   name, name_suffix, output_freq 
     1291      CHARACTER(LEN=*),OPTIONAL , INTENT(out) ::   name, name_suffix 
     1292#if defined key_xios2 
     1293      TYPE(xios_duration), OPTIONAL , INTENT(out) :: output_freq 
     1294#else 
     1295      CHARACTER(LEN=*)   , OPTIONAL , INTENT(out) :: output_freq 
     1296#endif   
    12141297      LOGICAL                                 ::   llexist1,llexist2,llexist3 
    12151298      !--------------------------------------------------------------------- 
    12161299      IF( PRESENT( name        ) )   name = ''          ! default values 
    12171300      IF( PRESENT( name_suffix ) )   name_suffix = '' 
     1301#if defined key_xios2 
     1302      IF( PRESENT( output_freq ) )   output_freq = xios_duration(0,0,0,0,0,0) 
     1303#else 
    12181304      IF( PRESENT( output_freq ) )   output_freq = '' 
     1305#endif 
    12191306      IF ( xios_is_valid_file     (cdid) ) THEN 
    12201307         CALL xios_solve_inheritance() 
     
    12371324      CHARACTER(LEN=*)                   , INTENT(in) ::   cdid 
    12381325      LOGICAL, DIMENSION(:,:,:), OPTIONAL, INTENT(in) ::   mask 
     1326#if defined key_xios2 
     1327      IF ( xios_is_valid_grid     (cdid) )   CALL xios_set_grid_attr     ( cdid, mask_3D=mask ) 
     1328      IF ( xios_is_valid_gridgroup(cdid) )   CALL xios_set_gridgroup_attr( cdid, mask_3D=mask ) 
     1329#else 
    12391330      IF ( xios_is_valid_grid     (cdid) )   CALL xios_set_grid_attr     ( cdid, mask=mask ) 
    12401331      IF ( xios_is_valid_gridgroup(cdid) )   CALL xios_set_gridgroup_attr( cdid, mask=mask ) 
     1332#endif 
    12411333      CALL xios_solve_inheritance() 
    12421334   END SUBROUTINE iom_set_grid_attr 
     
    12801372      ni=nlei-nldi+1 ; nj=nlej-nldj+1 
    12811373 
     1374#if defined key_xios2 
     1375      CALL iom_set_domain_attr("grid_"//cdgrd, ni_glo=jpiglo, nj_glo=jpjglo, ibegin=nimpp+nldi-2, jbegin=njmpp+nldj-2, ni=ni, nj=nj) 
     1376#else 
    12821377      CALL iom_set_domain_attr("grid_"//cdgrd, ni_glo=jpiglo, nj_glo=jpjglo, ibegin=nimpp+nldi-1, jbegin=njmpp+nldj-1, ni=ni, nj=nj) 
     1378#endif      
    12831379      CALL iom_set_domain_attr("grid_"//cdgrd, data_dim=2, data_ibegin = 1-nldi, data_ni = jpi, data_jbegin = 1-nldj, data_nj = jpj) 
    12841380      CALL iom_set_domain_attr("grid_"//cdgrd, lonvalue = RESHAPE(plon(nldi:nlei, nldj:nlej),(/ ni*nj /)),   & 
     
    12941390         END SELECT 
    12951391         ! 
     1392#if defined key_xios2 
     1393         CALL iom_set_domain_attr( "grid_"//cdgrd       , mask = RESHAPE(zmask(nldi:nlei,nldj:nlej,1),(/ni*nj    /)) /= 0. ) 
     1394#else 
    12961395         CALL iom_set_domain_attr( "grid_"//cdgrd       , mask = RESHAPE(zmask(nldi:nlei,nldj:nlej,1),(/ni,nj    /)) /= 0. ) 
     1396#endif  
    12971397         CALL iom_set_grid_attr  ( "grid_"//cdgrd//"_3D", mask = RESHAPE(zmask(nldi:nlei,nldj:nlej,:),(/ni,nj,jpk/)) /= 0. ) 
    12981398      ENDIF 
     
    14281528      ALLOCATE( zlon(ni*nj) )       ;       zlon(:) = 0. 
    14291529 
     1530      CALL dom_ngb( 180., 90., ix, iy, 'T' ) !  i-line that passes near the North Pole : Reference latitude (used in plots) 
     1531#if  defined key_xios2 
     1532      CALL iom_set_domain_attr("gznl", ni_glo=jpiglo, nj_glo=jpjglo, ibegin=nimpp+nldi-2, jbegin=njmpp+nldj-2, ni=ni, nj=nj) 
     1533      CALL iom_set_domain_attr("gznl", data_dim=2, data_ibegin = 1-nldi, data_ni = jpi, data_jbegin = 1-nldj, data_nj = jpj) 
     1534      CALL iom_set_domain_attr("gznl", lonvalue = zlon,   & 
     1535         &                             latvalue = RESHAPE(plat(nldi:nlei, nldj:nlej),(/ ni*nj /)))   
     1536      CALL iom_set_zoom_domain_attr ("ptr", ibegin=ix-1, jbegin=0, ni=1, nj=jpjglo) 
     1537#else 
    14301538      CALL iom_set_domain_attr("gznl", ni_glo=jpiglo, nj_glo=jpjglo, ibegin=nimpp+nldi-1, jbegin=njmpp+nldj-1, ni=ni, nj=nj) 
    14311539      CALL iom_set_domain_attr("gznl", data_dim=2, data_ibegin = 1-nldi, data_ni = jpi, data_jbegin = 1-nldj, data_nj = jpj) 
    14321540      CALL iom_set_domain_attr("gznl", lonvalue = zlon,   & 
    14331541         &                             latvalue = RESHAPE(plat(nldi:nlei, nldj:nlej),(/ ni*nj /)))   
    1434       ! 
    1435       CALL dom_ngb( 180., 90., ix, iy, 'T' ) !  i-line that passes near the North Pole : Reference latitude (used in plots) 
    14361542      CALL iom_set_domain_attr ('ptr', zoom_ibegin=ix, zoom_nj=jpjglo) 
     1543#endif 
     1544      ! 
    14371545      CALL iom_update_file_name('ptr') 
    14381546      ! 
     
    14481556      REAL(wp), DIMENSION(1)   ::   zz = 1. 
    14491557      !!---------------------------------------------------------------------- 
     1558 
     1559#if defined key_xios2 
     1560      CALL iom_set_domain_attr('scalarpoint', ni_glo=jpnij, nj_glo=1, ibegin=narea-1, jbegin=0, ni=1, nj=1) 
     1561#else 
    14501562      CALL iom_set_domain_attr('scalarpoint', ni_glo=jpnij, nj_glo=1, ibegin=narea, jbegin=1, ni=1, nj=1) 
     1563#endif 
    14511564      CALL iom_set_domain_attr('scalarpoint', data_dim=2, data_ibegin = 1, data_ni = 1, data_jbegin = 1, data_nj = 1) 
    14521565       
     
    14771590      REAL(wp)        ,DIMENSION( 3) ::   zlonpira                 ! longitudes of pirata moorings 
    14781591      REAL(wp)        ,DIMENSION( 9) ::   zlatpira                 ! latitudes  of pirata moorings 
     1592#if  defined key_xios2 
     1593      TYPE(xios_duration)            ::   f_op, f_of 
     1594#endif 
    14791595      !!---------------------------------------------------------------------- 
    14801596      !  
    14811597      ! frequency of the call of iom_put (attribut: freq_op) 
    1482       WRITE(cl1,'(i1)')        1   ;   CALL iom_set_field_attr('field_definition', freq_op = cl1//'ts', freq_offset='0ts') 
    1483       WRITE(cl1,'(i1)')  nn_fsbc   ;   CALL iom_set_field_attr('SBC'             , freq_op = cl1//'ts', freq_offset='0ts') 
    1484       WRITE(cl1,'(i1)')  nn_fsbc   ;   CALL iom_set_field_attr('SBC_scalar'      , freq_op = cl1//'ts', freq_offset='0ts') 
    1485       WRITE(cl1,'(i1)') nn_dttrc   ;   CALL iom_set_field_attr('ptrc_T'          , freq_op = cl1//'ts', freq_offset='0ts') 
    1486       WRITE(cl1,'(i1)') nn_dttrc   ;   CALL iom_set_field_attr('diad_T'          , freq_op = cl1//'ts', freq_offset='0ts') 
    1487         
     1598#if defined key_xios2 
     1599      f_op%timestep = 1        ;  f_of%timestep = 0  ; CALL iom_set_field_attr('field_definition', freq_op=f_op, freq_offset=f_of) 
     1600      f_op%timestep = nn_fsbc  ;  f_of%timestep = 0  ; CALL iom_set_field_attr('SBC'             , freq_op=f_op, freq_offset=f_of) 
     1601      f_op%timestep = nn_fsbc  ;  f_of%timestep = 0  ; CALL iom_set_field_attr('SBC_scalar'      , freq_op=f_op, freq_offset=f_of) 
     1602      f_op%timestep = nn_dttrc ;  f_of%timestep = 0  ; CALL iom_set_field_attr('ptrc_T'          , freq_op=f_op, freq_offset=f_of) 
     1603      f_op%timestep = nn_dttrc ;  f_of%timestep = 0  ; CALL iom_set_field_attr('diad_T'          , freq_op=f_op, freq_offset=f_of) 
     1604#else 
     1605      WRITE(cl1,'(i1)')        1   ;   CALL iom_set_field_attr('field_definition', freq_op=cl1//'ts', freq_offset='0ts') 
     1606      WRITE(cl1,'(i1)')  nn_fsbc   ;   CALL iom_set_field_attr('SBC'             , freq_op=cl1//'ts', freq_offset='0ts') 
     1607      WRITE(cl1,'(i1)')  nn_fsbc   ;   CALL iom_set_field_attr('SBC_scalar'      , freq_op=cl1//'ts', freq_offset='0ts') 
     1608      WRITE(cl1,'(i1)') nn_dttrc   ;   CALL iom_set_field_attr('ptrc_T'          , freq_op=cl1//'ts', freq_offset='0ts') 
     1609      WRITE(cl1,'(i1)') nn_dttrc   ;   CALL iom_set_field_attr('diad_T'          , freq_op=cl1//'ts', freq_offset='0ts') 
     1610#endif 
     1611 
    14881612      ! output file names (attribut: name) 
    14891613      DO ji = 1, 9 
     
    15061630         ! Equatorial section (attributs: jbegin, ni, name_suffix) 
    15071631         CALL dom_ngb( 0., 0., ix, iy, cl1 ) 
     1632#if defined key_xios2 
     1633         CALL iom_set_zoom_domain_attr ('Eq'//cl1, jbegin=iy-1, ni=jpiglo) 
     1634#else 
    15081635         CALL iom_set_domain_attr ('Eq'//cl1, zoom_jbegin=iy, zoom_ni=jpiglo) 
     1636#endif 
    15091637         CALL iom_get_file_attr   ('Eq'//cl1, name_suffix = clsuff             ) 
    15101638         CALL iom_set_file_attr   ('Eq'//cl1, name_suffix = TRIM(clsuff)//'_Eq') 
     
    15861714               ENDIF 
    15871715               clname = TRIM(ADJUSTL(clat))//TRIM(ADJUSTL(clon)) 
     1716#if defined key_xios2 
     1717               CALL iom_set_zoom_domain_attr  (TRIM(clname)//cl1, ibegin= ix-1, jbegin= iy-1) 
     1718#else 
    15881719               CALL iom_set_domain_attr (TRIM(clname)//cl1, zoom_ibegin= ix, zoom_jbegin= iy) 
     1720#endif 
     1721 
    15891722               CALL iom_get_file_attr   (TRIM(clname)//cl1, name_suffix = clsuff                         ) 
    15901723               CALL iom_set_file_attr   (TRIM(clname)//cl1, name_suffix = TRIM(clsuff)//'_'//TRIM(clname)) 
     
    16151748      REAL(wp)           ::   zsec 
    16161749      LOGICAL            ::   llexist 
     1750#if  defined key_xios2 
     1751      TYPE(xios_duration)   ::   output_freq  
     1752#endif  
    16171753      !!---------------------------------------------------------------------- 
    16181754 
    16191755      DO jn = 1,2 
    16201756 
     1757#if defined key_xios2 
     1758         output_freq = xios_duration(0,0,0,0,0,0) 
     1759         IF( jn == 1 )   CALL iom_get_file_attr( cdid, name        = clname, output_freq = output_freq ) 
     1760#else 
    16211761         IF( jn == 1 )   CALL iom_get_file_attr( cdid, name        = clname, output_freq = clfreq ) 
     1762#endif 
    16221763         IF( jn == 2 )   CALL iom_get_file_attr( cdid, name_suffix = clname ) 
    16231764 
     
    16301771            END DO 
    16311772 
     1773#if defined key_xios2 
     1774            idx = INDEX(clname,'@freq@') + INDEX(clname,'@FREQ@') 
     1775            DO WHILE ( idx /= 0 )  
     1776              IF ( output_freq%timestep /= 0) THEN 
     1777                  WRITE(clfreq,'(I18,A2)')INT(output_freq%timestep),'ts'  
     1778                  itrlen = LEN_TRIM(ADJUSTL(clfreq)) 
     1779              ELSE IF ( output_freq%hour /= 0 ) THEN 
     1780                  WRITE(clfreq,'(I19,A1)')INT(output_freq%hour),'h'  
     1781                  itrlen = LEN_TRIM(ADJUSTL(clfreq)) 
     1782              ELSE IF ( output_freq%day /= 0 ) THEN 
     1783                  WRITE(clfreq,'(I19,A1)')INT(output_freq%day),'d'  
     1784                  itrlen = LEN_TRIM(ADJUSTL(clfreq)) 
     1785              ELSE IF ( output_freq%month /= 0 ) THEN    
     1786                  WRITE(clfreq,'(I19,A1)')INT(output_freq%month),'m'  
     1787                  itrlen = LEN_TRIM(ADJUSTL(clfreq)) 
     1788              ELSE IF ( output_freq%year /= 0 ) THEN    
     1789                  WRITE(clfreq,'(I19,A1)')INT(output_freq%year),'y'  
     1790                  itrlen = LEN_TRIM(ADJUSTL(clfreq)) 
     1791              ELSE 
     1792                  CALL ctl_stop('error in the name of file id '//TRIM(cdid),   & 
     1793                     & ' attribute output_freq is undefined -> cannot replace @freq@ in '//TRIM(clname) ) 
     1794              ENDIF 
     1795              clname = clname(1:idx-1)//TRIM(ADJUSTL(clfreq))//clname(idx+6:LEN_TRIM(clname)) 
     1796              idx = INDEX(clname,'@freq@') + INDEX(clname,'@FREQ@') 
     1797            END DO 
     1798#else 
    16321799            idx = INDEX(clname,'@freq@') + INDEX(clname,'@FREQ@') 
    16331800            DO WHILE ( idx /= 0 )  
     
    16421809               idx = INDEX(clname,'@freq@') + INDEX(clname,'@FREQ@') 
    16431810            END DO 
    1644  
     1811#endif 
    16451812            idx = INDEX(clname,'@startdate@') + INDEX(clname,'@STARTDATE@') 
    16461813            DO WHILE ( idx /= 0 )  
Note: See TracChangeset for help on using the changeset viewer.