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

Approximation table calculation #90

Open
2 tasks
FlorianDeconinck opened this issue Nov 7, 2024 · 0 comments
Open
2 tasks

Approximation table calculation #90

FlorianDeconinck opened this issue Nov 7, 2024 · 0 comments

Comments

@FlorianDeconinck
Copy link
Collaborator

Moist physics requires approximation table to be calculated to replace exact solutions.
We have ran into two cases so far, with two less than ideal solutions:

  • QSat: calculation of the table is done in pure Python, which requires mixed precision cast and requires every literal to be Float() casted
  • qs_table: calculation is done in stencil, which leads to a more readable literal code than above, but require to "misuse" the stencil system (it's not a stencil - it's off-grid)

Because we don't have off grid Fields, both solution abuse the data dimensions system.This leads to a memory usage explosion. For a 18K entry table, we need to do at minima a (1, 1, KM, 18K) field, which leads to an 18K*KM elements.

Parent: #36


  • Allow Off-Grid array to be read-only accessed
  • Package a table maker that solves mixed precision and writes in Off-Grid (non-stencil)
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