From 291123f085f5a908d585a9294f663ba2798f05c7 Mon Sep 17 00:00:00 2001 From: "Lucas T. S" Date: Thu, 19 Dec 2024 22:38:49 -0600 Subject: [PATCH] ODESolver: Improved error message when previous and double previous RHS groups are not created when using BMS methods --- ODESolvers/src/solve.cxx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ODESolvers/src/solve.cxx b/ODESolvers/src/solve.cxx index bc0a026e1..c9286b7d5 100644 --- a/ODESolvers/src/solve.cxx +++ b/ODESolvers/src/solve.cxx @@ -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); } } @@ -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) { @@ -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); } }