Skip to content
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

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Overhauls sediment #236

wants to merge 25 commits into from

Conversation

jagoosw
Copy link
Collaborator

@jagoosw jagoosw commented Jan 2, 2025

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 become FluxBoundaryConditions 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

@jagoosw
Copy link
Collaborator Author

jagoosw commented Jan 2, 2025

I will rebase after #233 is merged

@jagoosw jagoosw force-pushed the jsw/refactor-sediment branch from 8af8c4e to 30db3ce Compare January 2, 2025 11:20
@jagoosw
Copy link
Collaborator Author

jagoosw commented Jan 3, 2025

@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 jagoosw added bug Something isn't working tech debt labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sediment tendency calculations
2 participants