aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/interface.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-08-04 00:27:34 -0400
committerErik Schnetter <schnetter@gmail.com>2013-08-04 00:27:34 -0400
commit7119df45e3bd7e7ad353719f7b41a71ebb604912 (patch)
tree63b75d96c1c60e35a257747ae32e6fc838a557e4 /Carpet/Carpet/interface.ccl
parent3a4bc5a1416ea920644f3e0850920898f52459aa (diff)
Carpet: Add aliased function Driver_TotalMemoryUsed
Add aliased function Driver_TotalMemoryUsed that calculates the total amount of memory currently used by Carpet.
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r--Carpet/Carpet/interface.ccl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl
index 577cbb059..9bf2ee08b 100644
--- a/Carpet/Carpet/interface.ccl
+++ b/Carpet/Carpet/interface.ccl
@@ -64,6 +64,19 @@ PROVIDES FUNCTION CCTK_ProcsOnHost WITH Carpet_ProcsOnHost LANGUAGE C
+# Return total amount of memory used by Carpet
+# These numbers report number of bytes for the current MPI process.
+# They are mutually exclusive.
+# The return value indicates success (0) or an error (negative).
+CCTK_INT FUNCTION Driver_TotalMemoryUsed( \
+ CCTK_REAL OUT metadata, \
+ CCTK_REAL OUT grid_structure, \
+ CCTK_REAL OUT grid_arrays, \
+ CCTK_REAL OUT grid_functions)
+PROVIDES FUNCTION Driver_TotalMemoryUsed WITH Carpet_TotalMemoryUsed LANGUAGE C
+
+
+
# Register and unregister routines which are called before and after
# every scheduled routine
CCTK_INT \