-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
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.
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.
LGTM, one request. Please squash immediately
{ | ||
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); | ||
} |
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.
Could you add a test for Ylm basis? Mostly just to provide an example for folks in the future with a 2d basis.
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.
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...
Just wait then!!
…On Mon, Mar 3, 2025, 13:27 Lawrence Kidder ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tests/Unit/Domain/Test_Block.cpp
<#6510 (comment)>
:
> + {
+ 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);
+ }
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...
—
Reply to this email directly, view it on GitHub
<#6510 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHHPFSS3CHOJRWMBUNIAJD2SSUKJAVCNFSM6AAAAABYEIABJCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDMNJVGA3TMNZVGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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
make doc
to generate the documentation locally intoBUILD_DIR/docs/html
.Then open
index.html
.code review guide.
bugfix
ornew feature
if appropriate.Further comments