-
Notifications
You must be signed in to change notification settings - Fork 188
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
CylBinaryCompactObject: add equiangular map. #4697
CylBinaryCompactObject: add equiangular map. #4697
Conversation
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.
Are you relatively certain that the unit tests would catch bugs where coord maps join discontinuously because of missing equiangular maps? For example, do they fail when you only make some of the cylinders equiangular?
tests/Unit/Domain/Creators/Test_CylindricalBinaryCompactObject.cpp
Outdated
Show resolved
Hide resolved
I tried making only some of the wedges equiangular, or some of the cylinders equiangular, and the test still passes. I don't understand why Made other changes except for cartesian_product. |
try cherry-picking the commit from https://github.com/kidder/spectre/tree/check_block_faces and see if the test still passes |
1fb8c5b
to
d247631
Compare
Rebased, which also did some of the requested changes here. So now there are only 3 relevant fixup commits. |
d247631
to
fc74a48
Compare
Thanks @kidder ! when I cherry-pick https://github.com/kidder/spectre/tree/check_block_faces, the current PR passes the tests as-is, but if I intentionally introduce a bug by turning on |
okay, I'll clean that up and make a PR |
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.
I thought that continuity of maps was tested in one of the generic tests already, but apparently it isn't. Thanks for checking. We don't need to hold up the PR with that. @kidder thanks for adding that test.
the current test only checks the corners of the block faces, not the interior... |
fc74a48
to
acabc9a
Compare
squashed |
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 test timed out in one of the builds. I've seen timeouts in this test before. Can we reduce the amount of work done in the big cartesian product of options?
Edit: or we randomly skip some of the iterations of the loop ("fuzzy cartesian product")
@markscheel would you mind adding the random-skipping code also to the BinaryCompactObject domain test while you rebase/squash? It's been timing out as well. |
Previously was using `typename CenterA::type center_A`, etc.
The idea is to speed up the test by not testing every possible combination of the options.
22b3f85
to
27b71c0
Compare
Proposed changes
Adds an equiangular map option to CylindricalBinaryCompactObject.
Upgrade instructions
When using the
CylindricalBinaryCompactObject
domain creator one must now specifyUseEquiangularMap
. Setting this option to false gives the previous behavior.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.