Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikwit committed Sep 18, 2024
1 parent 18e9bd4 commit 60648e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/Evolution/Systems/CurvedScalarWave/Worldtube/Tags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ SelfForceOptions::SelfForceOptions(const double mass_in,
: mass(mass_in),
iterations(iterations_in),
turn_on_time(turn_on_time_in),
turn_on_interval(turn_on_interval_in) {}
turn_on_interval(turn_on_interval_in) {
if (turn_on_interval_in < 1.) {
ERROR("The turn on interval must be at least 1 M.");
}
}

void SelfForceOptions::pup(PUP::er& p) {
p | mass;
Expand Down
5 changes: 3 additions & 2 deletions src/Evolution/Systems/CurvedScalarWave/Worldtube/Tags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ struct SelfForceOptions {
struct TurnOnInterval {
using type = double;
static constexpr Options::String help{
"The interval over which the scalar self force is smoothly turned on."};
static double lower_bound() { return 0.; }
"The interval over which the scalar self force is smoothly turned on. "
"We require a minimum of 1 M for the interval."};
static double lower_bound() { return 1.; }
};

SelfForceOptions();
Expand Down

0 comments on commit 60648e8

Please sign in to comment.