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

Add element mask to SpectralElementGrid2D #2085

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sriharshakandala
Copy link
Member

Add element mask to SpectralElementGrid2D

  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

@Sbozzolo
Copy link
Member

Sbozzolo commented Dec 4, 2024

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function set_mask!(space::AbstractSpace, mask::Field)

with Spaces.horizontal_space(axes(mask)) == Spaces.horizontal_space(axes(sapce))

@@ -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`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.

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

Successfully merging this pull request may close these issues.

3 participants