diff options
author | Roland Haas <roland.haas@physics.gatech.edu> | 2012-09-06 22:55:21 -0400 |
---|---|---|
committer | Roland Haas <roland.haas@physics.gatech.edu> | 2012-09-06 22:55:21 -0400 |
commit | fcd89f6124a498e089648ba2d203f768fa6ca073 (patch) | |
tree | c44af60373bb2ea832cab156691baf9e1505221f /Carpet/Carpet/interface.ccl | |
parent | 4b548cef6528ff0527c697e930cbef6261209d7a (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.ccl | 22 |
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, |