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

Enable equiangular maps in BBH domain #4676

Merged
merged 3 commits into from Feb 6, 2023

Conversation

nilsvu
Copy link
Member

@nilsvu nilsvu commented Jan 31, 2023

Proposed changes

Another step towards #3545.

Upgrade instructions

In input files using the BinaryCompactObject domain creator, add the UseEquiangularMap: True option.

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

Copy link
Contributor

@mar-celine mar-celine left a 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

@@ -717,7 +717,8 @@ std::vector<domain::CoordinateMaps::Frustum> frustum_coordinate_maps(
use_equiangular_map,
projective_scale_factor,
false,
sphericity});
sphericity,
-1.});
Copy link
Contributor

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,
Copy link
Contributor

@mar-celine mar-celine Feb 1, 2023

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.
Copy link
Contributor

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.

Copy link
Member Author

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 :)

mar-celine
mar-celine previously approved these changes Feb 1, 2023
Copy link
Contributor

@mar-celine mar-celine left a 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!

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.

You can squash and rebase immediately


} // namespace detail

// convert a tuple of ranges to the range of tuples representing the Cartesian
Copy link
Member

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?

op();
}

// "peal off" the first range from the remaining tuple of ranges
Copy link
Member

Choose a reason for hiding this comment

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

peal -> peel, same below

@nilsdeppe nilsdeppe merged commit 8ac60c0 into sxs-collaboration:develop Feb 6, 2023
@nilsvu nilsvu deleted the equiangular_frustums branch February 6, 2023 08:01
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

3 participants