Skip to content

Commit

Permalink
check for sigma added
Browse files Browse the repository at this point in the history
  • Loading branch information
mari2895 committed Mar 7, 2024
1 parent 0a2f59c commit fcb26d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analysis/analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
auto analysis_pkg = std::make_shared<StateDescriptor>("analysis");
Params &params = analysis_pkg->AllParams();
Real sigma = pin->GetOrAddReal("analysis", "sigma", 2e-3);
if (sigma < 0){
PARTHENON_THROW("sigma must be greater than 0");
}
params.Add("sigma", sigma);

return analysis_pkg;
Expand Down

0 comments on commit fcb26d0

Please sign in to comment.