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
Enable equiangular maps in BBH domain #4676
Enable equiangular maps in BBH domain #4676
Conversation
3201703
to
4f426c1
Compare
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.
Looks good! Just some minor comments
src/Domain/DomainHelpers.cpp
Outdated
@@ -717,7 +717,8 @@ std::vector<domain::CoordinateMaps::Frustum> frustum_coordinate_maps( | |||
use_equiangular_map, | |||
projective_scale_factor, | |||
false, | |||
sphericity}); | |||
sphericity, | |||
-1.}); |
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.
Can have be -1.0
and 1.0
on line 736 for consistency with the rest of the file. Also for clarity for the last argument (since the other arguments have variable names) can add a comment on line 702 (The frustums on the left are given a -1.0
indicating a lower half equiangular map while the frustums on the right are given a 1.0
indicating an upper half equiangular map) (Ideally this should probably be an enum, but that was my own mistake!)
@@ -589,7 +596,8 @@ class BinaryCompactObject : public DomainCreator<3> { | |||
double outer_radius_domain, | |||
const typename InitialRefinement::type& initial_refinement, | |||
const typename InitialGridPoints::type& initial_number_of_grid_points, | |||
bool use_projective_map = true, double frustum_sphericity = 0.0, | |||
bool use_equiangular_map = true, bool use_projective_map = true, | |||
double frustum_sphericity = 0.0, |
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.
Minor comment here and for line 626: Now that we have equiangular capability, and the frustum layer can be made spherical, should this default value for the frustum_sphericity
be kept at 0.0
? Maybe it can be changed to be 1.0
now unless there is a good reason to avoid using that value by default.
@@ -0,0 +1,64 @@ | |||
// Distributed under the MIT License. |
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.
This would be good as a separate commit because it is conceptually unrelated to the domain changes.
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.
It is a separate commit :)
4f426c1
to
a8c53a9
Compare
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.
Looks good to me!
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.
You can squash and rebase immediately
src/Utilities/CartesianProduct.hpp
Outdated
|
||
} // namespace detail | ||
|
||
// convert a tuple of ranges to the range of tuples representing the Cartesian |
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.
Why no Doxygen comment here?
src/Utilities/CartesianProduct.hpp
Outdated
op(); | ||
} | ||
|
||
// "peal off" the first range from the remaining tuple of ranges |
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.
peal
-> peel
, same below
a8c53a9
to
3487321
Compare
Proposed changes
Another step towards #3545.
Upgrade instructions
In input files using the
BinaryCompactObject
domain creator, add theUseEquiangularMap: True
option.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