aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/interface.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-08-05 14:16:18 -0400
committerErik Schnetter <schnetter@gmail.com>2013-08-06 13:11:11 -0400
commit6a344ba05da78f55de86fc966817cfdba159bc82 (patch)
treec3b57599025d17b7cd084406df0b69a1f5b7c40c /Carpet/Carpet/interface.ccl
parent3271def579ef3202e3f311fe2af04d3bce9775e0 (diff)
Carpet: Store amount of allocated memory in grid scalars
Diffstat (limited to 'Carpet/Carpet/interface.ccl')
-rw-r--r--Carpet/Carpet/interface.ccl13
1 files changed, 11 insertions, 2 deletions
diff --git a/Carpet/Carpet/interface.ccl b/Carpet/Carpet/interface.ccl
index 9bf2ee08b..edd3e75a1 100644
--- a/Carpet/Carpet/interface.ccl
+++ b/Carpet/Carpet/interface.ccl
@@ -61,7 +61,7 @@ PROVIDES FUNCTION CCTK_MyHost WITH Carpet_MyHost LANGUAGE C
PROVIDES FUNCTION CCTK_nHosts WITH Carpet_nHosts LANGUAGE C
PROVIDES FUNCTION CCTK_nProcsOnHost WITH Carpet_nProcsOnHost LANGUAGE C
PROVIDES FUNCTION CCTK_ProcsOnHost WITH Carpet_ProcsOnHost LANGUAGE C
-
+
# Return total amount of memory used by Carpet
@@ -256,6 +256,7 @@ CCTK_INT FUNCTION Accelerator_NotifyVariableWritten \
USES FUNCTION Accelerator_NotifyVariableWritten
+
# Access coordinate information (on the coarse level)
CCTK_INT FUNCTION GetCoordRange \
(CCTK_POINTER_TO_CONST IN cctkGH, \
@@ -406,6 +407,8 @@ CCTK_INT point_classification TYPE=gf TAGS='checkpoint="no" prolongation="none"'
# n>1: used only while time stepping (e.g. buffer zones)
} "Grid point classification"
+CCTK_INT carpet_unusedpoints_mask TYPE=GF tags='Prolongation="none"' "mask which is set !=0 for points which do not influence future evolution, assuming appropriate regridding"
+
CCTK_REAL timing TAGS='checkpoint="no"'
@@ -448,4 +451,10 @@ CCTK_REAL timing_levels TYPE=array DIM=1 SIZE=max_refinement_levels DISTRIB=cons
time_level time_level_count
} "Per-level timing information"
-CCTK_INT carpet_unusedpoints_mask TYPE=GF tags='Prolongation="none"' "mask which is set !=0 for points which do not influence future evolution, assuming appropriate regridding"
+CCTK_REAL memory_procs TYPE=array DIM=1 SIZE=1 DISTRIB=CONSTANT TAGS='checkpoint="no"'
+{
+ metadata
+ grid_structure
+ grid_arrays
+ grid_functions
+} "Memory usage information"