nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Refining the diagnostic output system #502

Open timspainNERSC opened 9 months ago

timspainNERSC commented 9 months ago

The current ConfigOutput system works fine, but we will soon be adding XIOS. This will allow more complex specification of diagnostic outputs. This issue is the place to discuss what the future output system of nextSIM-DG will look like.

timspainNERSC commented 9 months ago

My current thoughts on where development should go:

The workflow might then be:

  1. The user consults the documentation or the config help system to determine which output fields they require. This information includes the field name used by ConfigOutput and XIOS.
  2. The user adds this information to the config file or the nextsim command line.
  3. For XIOS, this information is processed by a script to generate the necessary XML files.
  4. The classes supporting output are configured to generate the requested output.
  5. During runtime, all configured fields are forwarded to ConfigOutput/XIOS every TS, where the necessary output processing occurs.