aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@ff385933-4943-42dc-877b-ffc776028de6>2004-07-05 14:42:17 +0000
committerschnetter <schnetter@ff385933-4943-42dc-877b-ffc776028de6>2004-07-05 14:42:17 +0000
commitfb9287e023d7b52820245583baaae64303f53449 (patch)
tree41888c952e52fae4e35517e087ff463f7bef528f
parent3e8291140931b7445e9e4078436343ff02382184 (diff)
Disable downsampling again if PUGH is active.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@68 ff385933-4943-42dc-877b-ffc776028de6
-rw-r--r--src/NaNCheck.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/NaNCheck.c b/src/NaNCheck.c
index 8d0ed05..6859c7f 100644
--- a/src/NaNCheck.c
+++ b/src/NaNCheck.c
@@ -222,8 +222,19 @@ void NaNChecker_TakeAction (CCTK_ARGUMENTS)
{
CCTK_INFO ("Write out NaN mask using the 'IOHDF5' I/O method");
}
- CCTK_OutputVarAsByMethod (cctkGH, "NaNChecker::NaNmask",
- "IOHDF5", "NaNmask");
+ if (CCTK_IsThornActive("PUGH"))
+ {
+ /* prevent downsampling -- only if PUGH is active, because this is
+ a non-standard option */
+ CCTK_OutputVarAsByMethod (cctkGH,
+ "NaNChecker::NaNmask[downsample={1 1 1}]",
+ "IOHDF5", "NaNmask");
+ }
+ else
+ {
+ CCTK_OutputVarAsByMethod (cctkGH, "NaNChecker::NaNmask",
+ "IOHDF5", "NaNmask");
+ }
/* save the iteration of the last NaNmask output */
last_iteration_output = cctk_iteration;