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

Store the DG Basis in the Block. #6510

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

kidder
Copy link
Member

@kidder kidder commented Mar 1, 2025

The dg_basis will be used to determine the topology of the Block as well as the Spectral::Basis used for a Mesh on an Element of the Block. It is default initialized to Spectral::Basis::Legendre as that has been the previous choice.

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

Sorry, something went wrong.

The dg_basis will be used to determine the topology of the Block as
well as the Spectral::Basis used for a Mesh on an Element of the
Block.  It is default initialized to Spectral::Basis::Legendre as
that has been the previous choice.
Copy link
Member

@nilsdeppe nilsdeppe left a comment

Choose a reason for hiding this comment

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

LGTM, one request. Please squash immediately

Comment on lines +360 to +367
{
const Block<2> rhs(
identity_map.get_clone(), 3, neighbors, "Identity",
{{Spectral::Basis::Chebyshev, Spectral::Basis::Legendre}});
CHECK(rhs.dg_basis() ==
std::array{Spectral::Basis::Chebyshev, Spectral::Basis::Legendre});
CHECK(block != rhs);
}
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a test for Ylm basis? Mostly just to provide an example for folks in the future with a 2d basis.

Copy link
Member Author

Choose a reason for hiding this comment

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

Such a test does not make sense until the next PR which fixes assumptions about external boundaries. So I can either add the commits for that PR to this one, or you can wait, doesn't matter to me...

@nilsdeppe
Copy link
Member

nilsdeppe commented Mar 3, 2025 via email

@kidder kidder dismissed nilsdeppe’s stale review March 4, 2025 15:47

Nils told me to merge this

@kidder kidder merged commit 1402f7c into sxs-collaboration:develop Mar 4, 2025
23 of 24 checks passed
@kidder kidder deleted the add_basis_to_block branch March 15, 2025 15:52
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.

None yet

2 participants