-
Notifications
You must be signed in to change notification settings - Fork 250
Materialize buoyancy gradients for use in parameterizations #4837
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
base: main
Are you sure you want to change the base?
Conversation
src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_model.jl
Outdated
Show resolved
Hide resolved
| arch = architecture(grid) | ||
|
|
||
| # Maybe compute buoyancy gradients | ||
| compute_buoyancy_gradients!(buoyancy, grid, tracers; parameters = κ_parameters) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does it take "κ_parameters"? These are the parameters for the turbulence closure? It's not clear why we would use that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, I think we need some interior_parameters and surface_parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for general confusion about the parameters and a few name change suggestions
Co-authored-by: Gregory L. Wagner <[email protected]>
Co-authored-by: Gregory L. Wagner <[email protected]>
…ce_model.jl Co-authored-by: Gregory L. Wagner <[email protected]>


This PR introduces the precomputation of buoyancy gradients, which are required for most parameterization.
By doing this, we avoid heavyl interpolation of buoyancy computations (for example in slope computations or in Richardson number computations) speeding up significantly the parameterizations.