Skip to content

Commit

Permalink
ODESolver: Improved error message when previous and double previous R…
Browse files Browse the repository at this point in the history
…HS groups are not created when using BMS methods
  • Loading branch information
lucass-carneiro committed Dec 20, 2024
1 parent 0b70a19 commit 291123f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ODESolvers/src/solve.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,10 @@ extern "C" void ODESolvers_Solve(CCTK_ARGUMENTS) {
p_rhs.groupdatas.push_back(&p_rhs_groupdata);
p_rhs.mfabs.push_back(p_rhs_groupdata.mfab.at(tl).get());
} else {
CCTK_VERROR("Method %s was selectd but no p_rhs group was provided",
method);
CCTK_VERROR("Group %s provides no \"p_rhs\" tag for storing the "
"previous RHS evaluations. This is required when using "
"%s for time integration",
groupdata.groupname.c_str(), method);
}
}

Expand All @@ -792,8 +794,10 @@ extern "C" void ODESolvers_Solve(CCTK_ARGUMENTS) {
p_rhs.groupdatas.push_back(&p_rhs_groupdata);
p_rhs.mfabs.push_back(p_rhs_groupdata.mfab.at(tl).get());
} else {
CCTK_VERROR("Method %s was selectd but no p_rhs group was provided",
method);
CCTK_VERROR("Group %s provides no \"p_rhs\" tag for storing the "
"previous RHS evaluations. This is required when using "
"%s for time integration",
groupdata.groupname.c_str(), method);
}

if (pp_rhs_gi >= 0) {
Expand All @@ -802,9 +806,10 @@ extern "C" void ODESolvers_Solve(CCTK_ARGUMENTS) {
pp_rhs.groupdatas.push_back(&pp_rhs_groupdata);
pp_rhs.mfabs.push_back(pp_rhs_groupdata.mfab.at(tl).get());
} else {
CCTK_VERROR(
"Method %s was selected but no pp_rhs group was provided",
method);
CCTK_VERROR("Group %s provides no \"pp_rhs\" tag for storing the "
"previous-previous RHS evaluations. This is required "
"when using %s for time integration",
groupdata.groupname.c_str(), method);
}
}

Expand Down

0 comments on commit 291123f

Please sign in to comment.