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.
Users/ModelInterfacing/InputsOutputs (diff) – NEMO

Changes between Version 3 and Version 4 of Users/ModelInterfacing/InputsOutputs


Ignore:
Timestamp:
2017-03-01T17:37:44+01:00 (7 years ago)
Author:
timgraham
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Users/ModelInterfacing/InputsOutputs

    v3 v4  
    2323== Adding new diagnostics == 
    2424If you want to add a NEMO diagnostic to the NEMO code you will need to do the following: 
    25    1) Add any necessary code to calculate you new diagnostic in NEMO <br> 
     25   1) Add any necessary code to calculate you new diagnostic in NEMO 
     26 
    2627   2) Send the field to XIOS using {{{CALL iom_put( 'field_id', variable )}}} where 'field_id' is a unique id for your new diagnostics and variable is the fortran variable containing the data. This should be called at every model timestep regardless of how often you want to output the field. No time averaging should be done in the model code.  
     28 
    2729   3) If it is computationally expensive to calculate your new diagnostic you should also use "iom_use" to determine if it is requested in the current model run. For example, 
    2830{{{ 
     
    3537}}} 
    3638 
     39    4) Add a variable definition to the field_def.xml (or field_def-???.xml) file 
     40 
     41    5) Add the variable to the iodef.xml or file_definition.xml file. 
    3742 
    3843 
     44