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

HEAP memory in physics schemes #74

Open
dustinswales opened this issue May 24, 2023 · 0 comments
Open

HEAP memory in physics schemes #74

dustinswales opened this issue May 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dustinswales
Copy link
Collaborator

Description

Some schemes rely on the dynamic use of HEAP memory (e.g module memory). This is problematic for host model applications that wish to run multiple instances of the ccpp-physics within the same executable, where we run into the issue of multiple tasks trying to read/write to the same memory.

Solution

Remove dynamic HEAP references from parameterizations and replace with Interstitials. This way each ccpp instance is self contained and "stateless" (no dynamic shared memory). This is straightforward for some schemes (i.e. Thompson MP), while quite invasive to others (i.e. ozone physics and RRTMGP).

@dustinswales dustinswales added the enhancement New feature or request label May 24, 2023
grantfirl pushed a commit that referenced this issue Jul 18, 2023
multiply canopy heat by fveg to conform to solution assumption
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