-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: What is maximum_sinking_velocity(bgc)
expected behaviour?
#229
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! |
That'd be appropriate to implement in Oceananigans if it is extending |
That's probably a much better approach since it should just be able to return something like |
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? |
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 thatNPZD
andLOBSTER
both define it but notPISCES
. it is also implemented in the mainBiogeochemistry
class 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
biogeochemistry
class (returning a 0) but gives an error if called onbiogeochemistry.underlying_biogeochemistry
(which isNPZD
in this case):Is the expected behaviour that the returned value is always 0? What is this used for?
The text was updated successfully, but these errors were encountered: