-
Notifications
You must be signed in to change notification settings - Fork 191
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
Prevent NumGridPointsAndGridSpacing element dist when using GTS #5769
Conversation
3be6f42
to
891e318
Compare
src/Domain/ElementDistribution.hpp
Outdated
|
||
template <typename Metavariables> | ||
static constexpr bool uses_lts_v = | ||
uses_lts<Metavariables, has_local_time_stepping_v<Metavariables>>::value; |
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 is CREATE_GET_STATIC_MEMBER_VARIABLE_OR_DEFAULT
.
src/Domain/ElementDistribution.hpp
Outdated
if constexpr (not element_weight_detail::uses_lts_v<Metavariables>) { | ||
PARSE_ERROR( | ||
options.context(), | ||
"When using global time stepping, you cannot use " |
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.
"using GTS" -> "not using LTS" to include elliptic.
/// \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. |
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.
Again, GTS -> not LTS
891e318
to
66b4ccb
Compare
I squashed directly |
Proposed changes
Also prevent using NumGridPointsAndGridSpacing in the elliptic code as well.
Upgrade instructions
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