From 4f4fa3547bb0858360605e5de3625728ced26aef Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 13 Jun 2001 22:00:18 +0000 Subject: 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 --- src/NaNCheck.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } } -- cgit v1.2.3