-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add element mask to SpectralElementGrid2D
#2085
base: main
Are you sure you want to change the base?
Conversation
c088679
to
3185e14
Compare
3185e14
to
2121eeb
Compare
e31aeb8
to
690c95c
Compare
Heads-up: you'll also need to change InputOutput to make sure that this is compatible with restarts |
@@ -138,11 +139,12 @@ mutable struct SpectralElementGrid2D{ | |||
internal_surface_geometry::IS | |||
boundary_surface_geometries::BS | |||
enable_bubble::Bool | |||
element_mask::EM | |||
end | |||
|
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.
function set_mask!(space::AbstractSpace, mask::Field) |
with Spaces.horizontal_space(axes(mask)) == Spaces.horizontal_space(axes(sapce))
3324c73
to
270cb57
Compare
270cb57
to
29d0e98
Compare
@@ -176,6 +179,8 @@ where ``\\tilde{A}^e`` is the approximated area given by the sum of the interior | |||
|
|||
Note: This is accurate only for cubed-spheres of the [`Meshes.EquiangularCubedSphere`](@ref) and | |||
[`Meshes.EquidistantCubedSphere`](@ref) type, not for [`Meshes.ConformalCubedSphere`](@ref). | |||
|
|||
The element mask can be used to block evaluation of tendencies for spectral elements for which it is set to `false`. |
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.
The element mask can be used to block evaluation of tendencies for spectral elements for which it is set to `false`. | |
The element mask can be used to skip evaluation of broadcast expressions for spectral elements with the mask set to `false`. |
Add element mask to
SpectralElementGrid2D