OceanBioME / OceanBioME.jl

🌊 🦠 🌿 A fast and flexible modelling environment written in Julia for modelling the coupled interactions between ocean biogeochemistry, carbonate chemistry, and physics
https://oceanbiome.github.io/OceanBioME.jl/
MIT License
40 stars 20 forks source link

Make `BoxModel`s speedy again (+ introduce prescribed PAR) #185

Closed jagoosw closed 1 month ago

jagoosw commented 2 months ago

Various changes to make time stepping better (~10x speedup for time stepping part) and a new "output writer" (but don't have time to make it an actual AbstractOutputWriter at the moment) which is >10x faster for the really long file saving stage, resulting in ~30x speedup overall for outputting every 20 iterations.

jagoosw commented 1 month ago

It has been pointed out to me that box models don't return auxiliary fields from biogeochemical_auxiliary_fields so I will add that in this PR