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

Introduce AMR policies #5765

Merged
merged 5 commits into from
Feb 16, 2024
Merged

Conversation

kidder
Copy link
Member

@kidder kidder commented Feb 14, 2024

Proposed changes

Adds amr::Policies, a class that will allow run-time control over adaptive mesh refinement features.

This PR adds the ability to control whether refinement is isotropic or anisotropic (i.e. whether each dimension can refine independently).

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

Copy link
Member

@wthrowe wthrowe left a comment

Choose a reason for hiding this comment

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

Doc CI failure is #5764.

Isotropic /**< all dimensions must be refined the same */
};

/// Output operator for .
Copy link
Member

Choose a reason for hiding this comment

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

"Isotropy"

#include <pup_stl.h>

namespace amr {
Policies::Policies(amr::Isotropy isotropy) : isotropy_(isotropy) {}
Copy link
Member

Choose a reason for hiding this comment

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

const argument.

@nilsvu nilsvu self-requested a review February 14, 2024 22:07
Copy link
Member

@wthrowe wthrowe 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.

Initially only holds the policy for the isotropy.  Additional policies
will be added in future PRs.
This gets rid of an unnecessary if constexpr as well as not needing
to add the tag in executables.
@nilsvu nilsvu merged commit 0af6926 into sxs-collaboration:develop Feb 16, 2024
21 of 22 checks passed
@kidder kidder deleted the amr_policies branch February 27, 2024 21:05
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.

3 participants