edoddridge / aronnax

An idealised isopycnal model that can be run either with n+1/2 layers, or with n layers and variable bathymetry.
http://aronnax.readthedocs.io/en/latest/
MIT License
24 stars 6 forks source link

Add optional detailed intermediate field dumps, for debugging #109

Open axch opened 7 years ago

axch commented 7 years ago

I am imagining a flag (possibly an integer flag with several verbosity levels, or a series of independent boolean flags) that causes the core to dump its fields with very high frequency, to enable debugging. The maximum version would be

We now have two places where this came up: helping check momentum conservation https://github.com/edoddridge/aronnax/issues/66#issuecomment-295068094, and a generic comment about the usefulness of dumping the first field https://github.com/edoddridge/aronnax/issues/107#issuecomment-295721794.

edoddridge commented 7 years ago

I like this a lot.

I imagine the levels would look something like:

We may also want to include verbose messages from the input reader subroutines at 3 or 4. The jump from 2 to 3 may also be too large.