diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-27 20:18:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-27 20:18:00 +0000 |
commit | e35a21fdcc0c6aca0543caafde37b2ff74a4e264 (patch) | |
tree | 80807bf2580fe320760157a81bf50cff1f9c49a7 /Carpet/CarpetLib/schedule.ccl | |
parent | 4b4e7cee5c2580bcf3b47b6af99b0e5bf0e5c9c5 (diff) |
CarpetLib: Output memory statistics, and limit maximum memory usage
Introduce a new parameter print_memstats_every. When non-zero, output
the current and total allocated amount of memory (per process).
Introduce a new parameter max_allowed_memory_MB. When more than that
amount should be allocated on the current processor, abort the run.
Only memory for grid variables counts; memory for administrative
overhead is ignored.
darcs-hash:20050727201851-891bb-c1ff9fc30ff949d576d500fbf70ad7fb5084836a.gz
Diffstat (limited to 'Carpet/CarpetLib/schedule.ccl')
-rw-r--r-- | Carpet/CarpetLib/schedule.ccl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/schedule.ccl b/Carpet/CarpetLib/schedule.ccl index e74ef4920..98cd00692 100644 --- a/Carpet/CarpetLib/schedule.ccl +++ b/Carpet/CarpetLib/schedule.ccl @@ -5,3 +5,9 @@ SCHEDULE CarpetLib_printtimestats AT analysis LANG: C OPTIONS: global } "Print timing statistics if desired" + +SCHEDULE CarpetLib_printmemstats AT analysis +{ + LANG: C + OPTIONS: global +} "Print memory statistics if desired" |