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

Simplify data management in thermodynamics #725

Open
einola opened this issue Oct 28, 2024 · 0 comments
Open

Simplify data management in thermodynamics #725

einola opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@einola
Copy link
Member

einola commented Oct 28, 2024

PrognosticData holds the main prognostic variables as initial, write-only values, while other model subroutines (e.g., IceGrowth and Dynamics) hold a copy of them as intermediary, read-write values.

There is no need to carry two data versions, which may give rise to unexpected errors.

@einola einola added the enhancement New feature or request label Oct 28, 2024
@einola einola self-assigned this Oct 28, 2024
einola added a commit that referenced this issue Oct 29, 2024
The temporary damage variable damageUpd was not correctly initialised in
PrognosticData::update. This commit just sets it to the value of
m_damage (as it should be done), but a proper fix would address issue
#725
einola added a commit that referenced this issue Jan 29, 2025
This is to address issue #725. I removed all duplication of prognostic
variables in the model and also removed the slab ice and slab snow
thickness variables. The assumption will be that all shared variables
are averaged over the grid cell (as is standard), and routines that need
the slab thickness calculate this on-the-fly.

TODO: Figure out if the tests run (some will not and will need
modification. Check if getState and friends are still doing sensible
things. Check if we have dangling, unused definitions lying around.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant