diff options
author | rhaas <rhaas@ff385933-4943-42dc-877b-ffc776028de6> | 2012-10-01 17:01:34 +0000 |
---|---|---|
committer | rhaas <rhaas@ff385933-4943-42dc-877b-ffc776028de6> | 2012-10-01 17:01:34 +0000 |
commit | ab1865a734304b688361fccbb437fcb4d4e5727e (patch) | |
tree | fdad49b1fe2494e553a7e2c9a4cfa9b9f141952c | |
parent | fb71c8e935025d61787b4fcaf8f62385b0f305b3 (diff) |
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
-rw-r--r-- | src/NaNCheck.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) |