From 865d76b2f07aa64ea4dd6972ef7490661bd88948 Mon Sep 17 00:00:00 2001 From: schnetter Date: Sat, 25 Aug 2007 02:32:12 +0000 Subject: Output timer reports to a file instead of to stdout Add a parameter to the thorn CactusUtils/TimerReport to output the timer reports to files instead of to stdout. The reports are often many lines long, and they use more than 80 characters per line, cluttering stdout. Additionally, having them in files allows looking at timer reports from all processors without collecting all processors' stdout. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/TimerReport/trunk@19 d0051148-8e13-4bef-be1d-f6c572c85f9f --- param.ccl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'param.ccl') diff --git a/param.ccl b/param.ccl index 015b6a6..3a31f7d 100644 --- a/param.ccl +++ b/param.ccl @@ -15,6 +15,12 @@ INT out_at "Output timer information at a given iteration" STEERABLE=ALWAYS 0:* :: "At this iteration" } -1 +STRING out_filename "File name for timer reports" STEERABLE=ALWAYS +{ + "^$" :: "empty filename: print to stdout" + "^.+$" :: "otherwise: print to that file" +} "" + BOOLEAN before_checkpoint "Before a checkpoint" STEERABLE=ALWAYS { } "no" @@ -25,4 +31,6 @@ BOOLEAN next "On next iteration" STEERABLE=ALWAYS shares: IO +USES STRING out_dir + USES INT checkpoint_every -- cgit v1.2.3