diff options
author | schnetter <schnetter@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2008-09-22 23:51:41 +0000 |
---|---|---|
committer | schnetter <schnetter@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2008-09-22 23:51:41 +0000 |
commit | 2eadd221eb3ab023777758e93a9dd14463e33d2b (patch) | |
tree | 71f0a6b4adee71b5ff710093fe1b7620cbe3a9ee | |
parent | ca85018c5e7ed9cc0c5af425b2409014763f4b5b (diff) |
Call the NaNChecker via the aliased function CheckVarsForNaN instead
of calling it directly. This decouples thorn MoL from thorn
NaNChecker.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@128 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
-rw-r--r-- | configuration.ccl | 4 | ||||
-rw-r--r-- | interface.ccl | 13 | ||||
-rw-r--r-- | src/RHSNaNCheck.c | 12 |
3 files changed, 17 insertions, 12 deletions
diff --git a/configuration.ccl b/configuration.ccl index 47dd245..98fbfd0 100644 --- a/configuration.ccl +++ b/configuration.ccl @@ -1,6 +1,2 @@ # Configuration definition for thorn MoL # $Header$ - -REQUIRES NaNChecker - - diff --git a/interface.ccl b/interface.ccl index 9a10c91..a07c680 100644 --- a/interface.ccl +++ b/interface.ccl @@ -5,10 +5,21 @@ implements: MethodOfLines #INCLUDE HEADER: MoLFunctions.h IN MoLFunctions.h #INCLUDE HEADER: MoL.h IN MoL.h -USES INCLUDE: NaNChecker.h #USES INCLUDE: carpet.h +################################################## +### Functions from NaNChecker that may be used ### +################################################## + +CCTK_INT FUNCTION CheckVarsForNaN \ + (CCTK_POINTER_TO_CONST IN cctkGH, \ + CCTK_INT IN report_max, \ + CCTK_STRING IN vars, \ + CCTK_STRING IN check_for, \ + CCTK_STRING IN action_if_found) +USES FUNCTION CheckVarsForNaN + ############################################## ### Functions from Carpet that may be used ### ############################################## diff --git a/src/RHSNaNCheck.c b/src/RHSNaNCheck.c index 6724437..d149d4f 100644 --- a/src/RHSNaNCheck.c +++ b/src/RHSNaNCheck.c @@ -16,8 +16,6 @@ #include "ExternalVariables.h" -#include "NaNChecker.h" - static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusBase_MoL_RHSNaNCheck_c); @@ -80,11 +78,11 @@ int MoL_NaNCheck(CCTK_ARGUMENTS) for (var = 0; var < MoLNumEvolvedVariables; var++) { char * const varname = CCTK_FullName(RHSVariableIndex[var]); - num_nans += NaNChecker_CheckVarsForNaN(cctkGH, - -1, - varname, - check_for, - action_if_found); + num_nans += CheckVarsForNaN(cctkGH, + -1, + varname, + check_for, + action_if_found); free(varname); } |