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

Depth_list with large domains #748

Open
herrwang0 opened this issue Oct 29, 2024 · 0 comments
Open

Depth_list with large domains #748

herrwang0 opened this issue Oct 29, 2024 · 0 comments

Comments

@herrwang0
Copy link

I suspect the following variable declarations are causing memory problems when the domain size is large.

real, dimension(G%Domain%niglobal*G%Domain%njglobal + 1) :: &
Dlist, & !< The global list of bottom depths [Z ~> m].
AreaList !< The global list of cell areas [L2 ~> m2].

For example, for a global 1/25 degree resolution (~9000x7000), the two fields will take close to 1GB stack, assuming 64-bit precision. With CALCULATE_APE on, I get "segmentation fault" errors.

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

No branches or pull requests

1 participant