Skip to content

Commit

Permalink
fix: use GetOrAddBoolean for tracers pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Dec 7, 2023
1 parent c24d73d commit 7c39420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracers/tracers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using namespace parthenon::package::prelude;

std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
auto physics = std::make_shared<StateDescriptor>("tracers");
const bool active = pin->GetBoolean("physics", "tracers");
const bool active = pin->GetOrAddBoolean("physics", "tracers", false);
physics->AddParam<bool>("active", active);
if (!active) return physics;

Expand Down

0 comments on commit 7c39420

Please sign in to comment.