Changes between Version 3 and Version 4 of Users/ModelInterfacing/InputsOutputs
- Timestamp:
- 2017-03-01T17:37:44+01:00 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Users/ModelInterfacing/InputsOutputs
v3 v4 23 23 == Adding new diagnostics == 24 24 If 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 26 27 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 27 29 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, 28 30 {{{ … … 35 37 }}} 36 38 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. 37 42 38 43 44