aboutsummaryrefslogtreecommitdiff
path: root/interface.ccl
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2006-04-25 15:05:50 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2006-04-25 15:05:50 +0000
commit884f627ed8f8d12b6a48f19a82e4d7f3a4fa178e (patch)
tree3b1f1742312e8589cbe8ab1b45f2236076d27194 /interface.ccl
parent2b308b0acbac553dd069205d1bdb0aca785a8ddf (diff)
detect whether we're in a checkpoint-recover recovery,
and if so *append* to BH_diagnostics files rather than truncating them -- thanks to Luca for reporting this bug and pesting us for a fix, to Erik for helpful discussions, and to Steve for a patch which forms the basis for this commit (tweaked to be in AHFinderDirect style) git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1443 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'interface.ccl')
-rw-r--r--interface.ccl15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface.ccl b/interface.ccl
index 4c683c1..707a8de 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -10,15 +10,30 @@ USES INCLUDE: SpaceMask.h
################################################################################
+#
+# ***** aliased functions used from other thorns *****
+#
+
# we use an aliased function maybe provided by DriftCorrect
SUBROUTINE SetDriftCorrectPosition \
(CCTK_POINTER_TO_CONST IN GH, \
CCTK_REAL IN x, CCTK_REAL IN y, CCTK_REAL IN z)
USES FUNCTION SetDriftCorrectPosition
+#
+# This IOUtil function is used to determine whether the diagnostics file
+# should be truncated or appended (as in a recovery run )
+#
+CCTK_INT FUNCTION IO_TruncateOutputFiles(CCTK_POINTER_TO_CONST IN GH)
+USES FUNCTION IO_TruncateOutputFiles
+
################################################################################
#
+# ***** aliased functions provided by this thorn *****
+#
+
+#
# This thorn provides an aliased-function interface which other thorns
# can use to find out about the horizons. Each function returns a status
# code which is >= 0 for ok, or < 0 for an error.