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

Rationalize use of Domains and fluxes in ocean and oceanfloor reactions #45

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sjdaines
Copy link
Member

@sjdaines sjdaines commented Dec 9, 2024

Goal is to make configuration of 0D ocean consistent with the configurations used for multi-box oceans, and remove some earlier bodges.

NB: these are breaking changes

  • 0D COPSE ocean configs now explicitly use a ReactionOceanNoTransport with one cell to configure the ocean, oceansurface, oceanfloor, fluxOceanfloor and fluxOceanBurial domains with a one-cell grid. Previous bodge to set up grids removed from ReactionOceanBurialCOPSE.

  • oceanfloor ReactionCarbBurialAlk now writes fluxes to fluxOceanfloor.soluteflux_DIC and optionally fluxOceanfloor.soluteflux_Ca, instead of directly to ocean state variable _sms variables. This makes this reaction consistent with the other oceanfloor reactions ReactionSeafloorWeathering and ReactionSrOceanfloor. Configurations will need updating to correctly transfer these fluxes to ocean / atmocean state variable derivatives.

sjdaines and others added 3 commits December 9, 2024 16:10
Goal is to make configuration of 0D ocean consistent with the configurations used for
multi-box oceans, and remove some earlier bodges.

NB: these are breaking changes

- 0D COPSE ocean configs now explicitly use a ReactionOceanNoTransport with one cell.
  Previous bodge to set up grids removed from ReactionOceanBurialCOPSE

- oceanfloor ReactionCarbBurialAlk now writes fluxes to `fluxOceanfloor.soluteflux_DIC` and
  optionally `fluxOceanfloor.soluteflux_Ca`, instead of directly to ocean state variable _sms variables.
  This makes this reaction consistent with the other oceanfloor reaction ReactionSeafloorWeathering
  and ReactionSrOceanfloor.
  Configurations will need updating to correctly transfer
  these fluxes to ocean / atmocean state variable derivatives.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant