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

Prevent NumGridPointsAndGridSpacing element dist when using GTS #5769

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

knelli2
Copy link
Contributor

@knelli2 knelli2 commented Feb 15, 2024

Proposed changes

Also prevent using NumGridPointsAndGridSpacing in the elliptic code as well.

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

@knelli2 knelli2 force-pushed the element_dist_restriction branch 2 times, most recently from 3be6f42 to 891e318 Compare February 15, 2024 21:53

template <typename Metavariables>
static constexpr bool uses_lts_v =
uses_lts<Metavariables, has_local_time_stepping_v<Metavariables>>::value;
Copy link
Member

Choose a reason for hiding this comment

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

This is CREATE_GET_STATIC_MEMBER_VARIABLE_OR_DEFAULT.

if constexpr (not element_weight_detail::uses_lts_v<Metavariables>) {
PARSE_ERROR(
options.context(),
"When using global time stepping, you cannot use "
Copy link
Member

Choose a reason for hiding this comment

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

"using GTS" -> "not using LTS" to include elliptic.

Comment on lines 43 to 46
/// \note When using global time stepping (GTS), a user cannot choose the
/// NumGridPointsAndGridSpacing element distribution because grid spacing does
/// not affect the computational cost at all. Therefore, if a user does choose
/// NumGridPointsAndGridSpacing when using GTS, an error will occur.
Copy link
Member

Choose a reason for hiding this comment

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

Again, GTS -> not LTS

@knelli2
Copy link
Contributor Author

knelli2 commented Feb 17, 2024

I squashed directly

@wthrowe wthrowe merged commit 2a4c646 into sxs-collaboration:develop Feb 17, 2024
22 checks passed
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.

2 participants