aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2001-06-13 22:00:18 +0000
committertradke <tradke@ff385933-4943-42dc-877b-ffc776028de6>2001-06-13 22:00:18 +0000
commit4f4fa3547bb0858360605e5de3625728ced26aef (patch)
treef4f27073be576d944039a6180972d83b507fd35e
parent9998175a255bb531f21e081f3d8c111e659aac90 (diff)
Issue an additional level 1 warning before the NaNChecker will terminate
or abort the simulation. Closes PR Thorns/717. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@14 ff385933-4943-42dc-877b-ffc776028de6
-rw-r--r--src/NaNCheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/NaNCheck.c b/src/NaNCheck.c
index 2d2a9e8..d5df991 100644
--- a/src/NaNCheck.c
+++ b/src/NaNCheck.c
@@ -428,10 +428,16 @@ static void NaNCheck (int vindex, const char *optstring, void *_GH)
if (CCTK_Equals (action_if_found, "terminate"))
{
+ CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
+ "\"action_if_found\" parameter is set to \"terminate\" - "
+ "scheduling graceful termination of Cactus");
CCTK_TerminateNext (NULL);
}
else if (CCTK_Equals (action_if_found, "abort"))
{
+ CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
+ "\"action_if_found\" parameter is set to \"abort\" - "
+ "aborting Cactus now");
CCTK_Abort (NULL, 0);
}
}