Replies: 4 comments
-
|
Hi @radka-j, The intention of this function was always to return the maximum sinking velocity that a bgc model imposed, but it seems like it was never tested and then forgotten. They could then be used by the code you linked in a timestep wizard-like: OceanBioME.jl/paper/figures/column.jl Line 63 in eb89012
OceanBioME.jl/src/OceanBioME.jl Line 163 in eb89012 because I never implemented: maximum_sinking_velocity(bgc::CompleteBiogeochemistry) = maximum_sinking_velocity(bgc.underlying_biogeochemistry)and at some point I forgot to update the NPZD and LOBSTER methods which should be like: @inline maximum_sinking_velocity(bgc::LOBSTER) = maximum(abs, bgc.sinking_velocities.bPOM) not I can fix this at some point, or if you'd like to use it feel free to PR the changes if I don't get round to it soon enough! |
Beta Was this translation helpful? Give feedback.
-
That'd be appropriate to implement in Oceananigans if it is extending |
Beta Was this translation helpful? Give feedback.
-
That's probably a much better approach since it should just be able to return something like |
Beta Was this translation helpful? Give feedback.
-
|
I think the right solution is to use This is guaranteed to work universally I think and wouldn't require maintaining any code in OceanBioME specifically? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm working on implementing a biogeochemistry model using OceanBioME and have found it incredibly useful, so thank you!
I have a question about the
maximum_sinking_velocity(bgc)method. I have noticed thatNPZDandLOBSTERboth define it but notPISCES. it is also implemented in the mainBiogeochemistryclass where it is set to return 0 and this is the method that seems to be called in the code.Additionally, if I use the example in the README and try to call this method, it works if called on the
biogeochemistryclass (returning a 0) but gives an error if called onbiogeochemistry.underlying_biogeochemistry(which isNPZDin this case):Is the expected behaviour that the returned value is always 0? What is this used for?
Beta Was this translation helpful? Give feedback.
All reactions