-
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
Overhauls sediment #236
base: main
Are you sure you want to change the base?
Overhauls sediment #236
Conversation
I will rebase after #233 is merged |
8af8c4e
to
30db3ce
Compare
@ali-ramadhan, this should be pretty much done, I just need the tests to pass and to update the documentation. I think this is a better way todo sediments and should be a lot easier to maintain in the future, do you think it looks okay? |
@jagoosw Will try to have a look later today! Hope it's okay that I resolve the merge conflicts so it's easier to review. EDIT: Actually is it okay if I let you resolve the merge conflicts just to ensure I don't butcher your code? Happy to review though! |
This PR refactors sediment models to not rely on making a huge mess of the Oceananigans time steppers. Instead, the sediment models are independently integrated during the
update_biogeochemical_state!
stage. Sediment models are now also written the same as other models where a developer only has to write forcing functions instead of the monstrosity they would have to put together before. I think that discrete form ones could also support multilayer models without having todo any more interal work.Another thought I had was that now we have
update_boundary_conditions!
in Oceananigans, sediment models could actually becomeFluxBoundaryConditions
which have properties and are integrated during the update stage, but I'm not sure how to nicely set that up.Closes #147 and #234