From c541fddc3f724add906dbae09ca29c157146ad31 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 12 Mar 2007 16:08:00 +0000 Subject: CarpetLib: Simplify timer interface Remove some parameters which are not necessary: CarpetLib::print_timestats CarpetLib::timestat_disable Allow the value -1 as well as 0 to disable output for timers and memory statistics. darcs-hash:20070312160854-dae7b-6c60bf0c64a5cac03da97595bb30bb2b47568165.gz --- Carpet/CarpetLib/param.ccl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Carpet/CarpetLib/param.ccl') diff --git a/Carpet/CarpetLib/param.ccl b/Carpet/CarpetLib/param.ccl index 3338690d9..8d83a335f 100644 --- a/Carpet/CarpetLib/param.ccl +++ b/Carpet/CarpetLib/param.ccl @@ -44,12 +44,9 @@ CCTK_INT poison_value "Integer value (0..255) used to poison new timelevels (wit -BOOLEAN print_timestats "Print timing statistics at every iteration" STEERABLE=always -{ -} "no" - INT print_timestats_every "Print timing statistics periodically" STEERABLE=always { + -1 :: "don't report" 0 :: "don't report" 1:* :: "report every so many iterations" } 0 @@ -68,20 +65,18 @@ KEYWORD timestat_timer "Timer for timing statistics" STEERABLE=recover "none" :: "don't measure time" } "none" -BOOLEAN timestat_disable "Disable timing statistics" STEERABLE=always -{ -} "no" - INT print_memstats_every "Report periodically how much memory is used per process" STEERABLE=always { + -1 :: "don't report" 0 :: "don't report" 1:* :: "report every so many iterations" } 0 INT max_allowed_memory_MB "Maximum allowed amount of memory per process (in Megabytes)" STEERABLE=always { + -1 :: "no maximum" 0 :: "no maximum" 1:* :: "abort if more memory is used" } 0 -- cgit v1.2.3