aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/interface.ccl
diff options
context:
space:
mode:
authorRoland Haas <roland.haas@physics.gatech.edu>2012-09-06 22:55:21 -0400
committerRoland Haas <roland.haas@physics.gatech.edu>2012-09-06 22:55:21 -0400
commitfcd89f6124a498e089648ba2d203f768fa6ca073 (patch)
treec44af60373bb2ea832cab156691baf9e1505221f /Carpet/Carpet/interface.ccl
parent4b548cef6528ff0527c697e930cbef6261209d7a (diff)
Carpet: add routines to record READS/WRITES at runtime
THe external interface seems ok, but the internals will be rewritten to avoid repeated string parsing, memory allocation and internal std::map manipulations.
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r--Carpet/Carpet/interface.ccl22
1 files changed, 22 insertions, 0 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl
index d2f7f5643..8ae894985 100644
--- a/Carpet/Carpet/interface.ccl
+++ b/Carpet/Carpet/interface.ccl
@@ -319,6 +319,28 @@ PROVIDES FUNCTION VarDataPtrI \
LANGUAGE C
+# programmatically check a reads clause
+void FUNCTION \
+ Requirements_CheckReads \
+ (CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN numvars, \
+ CCTK_INT ARRAY IN varidx, \
+ CCTK_STRING IN reads)
+PROVIDES FUNCTION Requirements_CheckReads \
+ WITH Carpet_Requirements_CheckReads \
+ LANGUAGE C
+
+# programmatically record a writes clause
+void FUNCTION \
+ Requirements_NotifyWrites \
+ (CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN numvars, \
+ CCTK_INT ARRAY IN varidx, \
+ CCTK_STRING IN reads)
+PROVIDES FUNCTION Requirements_NotifyWrites \
+ WITH Carpet_Requirements_NotifyWrites \
+ LANGUAGE C
+
# The true prototype of the routine below:
# int Carpet_Regrid (const cGH * cctkGH,