From ab1865a734304b688361fccbb437fcb4d4e5727e Mon Sep 17 00:00:00 2001 From: rhaas Date: Mon, 1 Oct 2012 17:01:34 +0000 Subject: fix use of restriction mask for grid arrays and scalars since they don't actually use CarpetReduce::weight it should be ignored even for ignore_restrited_points. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@106 ff385933-4943-42dc-877b-ffc776028de6 --- src/NaNCheck.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NaNCheck.cc b/src/NaNCheck.cc index 90572be..9ac72c9 100644 --- a/src/NaNCheck.cc +++ b/src/NaNCheck.cc @@ -884,7 +884,7 @@ void CheckForNaN (int vindex, const char *optstring, void *_info) /* get the pointer to the data (current time level) */ data = CCTK_VarDataPtrI (info->GH, timelevel, vindex); - if (ignore_restricted_points) + if (ignore_restricted_points && gtype == CCTK_GF) { CarpetWeights = (CCTK_REAL *)(CCTK_VarDataPtr(info->GH, timelevel, restriction_mask)); if (NULL == CarpetWeights) -- cgit v1.2.3