Changes between Version 3 and Version 4 of Users/Model Interfacing/Inputs Outputs


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

Legend:

Unmodified
Added
Removed
Modified
  • Users/Model Interfacing/Inputs Outputs

    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