APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
140 stars 168 forks source link

Daily messages about SurfaceOrganicMatter bloating Summary files #9470

Open sno036 opened 4 days ago

sno036 commented 4 days ago

Describe the new feature

Currently SurfaceOrganicMatter reports to the Summary file every day that it receives biomass from another model. It is my current understanding that this was done to ensure that residues were being passed from crop to SurfaceOrganicMatter upon harvest and that most of the crop models only added this biomass at the time of harvest.

Field.SurfaceOrganicMatter: Adding 13.88 kg/ha of biomass (0.12 kgN/ha) to pool: grass.

The pasture models add biomass to SurfaceOrganicMatter every day and this is bloating the Summary files - particularly in long simulations (currently running 100 year simulations so there are 36,000 lines of stuff that isn't really that noteworthy. Perhaps not a big deal but it is hard to get the Summary file viewer to open let alone find the messages that are important.

Currently the only way to not have the above messages reported is to change the level on the capture of message to "Information" but then the useful messages in Diagnostic are lost.

Crop people (@HamishBrownPFR @hut104) - are you wedded to the messages about additions to residue? Software people (@hol353 @par456) - is there an easier solution here?

par456 commented 3 days ago

Is this perhaps something where we could provide an option to disable biomass messages on SurfaceOrganicMatter? By default it would report messages, but in the case where you are trying to debug without them, you could disable them (maybe with a message at the top of the summary file that the messages are disabled).

Another option would be to add another category for them to go into that is below information, and basically just the daily biomass messages fit into that.

Lastly the most complex solution would be to rethink how we do the filtering on summary messages, and instead of just having 4 types of messages, summary messages could be filtered by their source. So you'd have a list of all models that reported something, and be able to toggle specific models ones on and off in the gui.