From 1644c4794c9dad110d83fa8d4adb2fc50bba7a1c Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 12 Nov 2007 12:48:21 +0000 Subject: added steerable parameters Formaline::steered_parameters_log_exclusion_list and Formaline::nr_of_parameter_changes_to_be_logged for users to specify which parameters should be logged and how often (see discussion thread http://lists.carpetcode.org/archives/developers/2007-November/002121.html) git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@144 83718e91-0e4f-0410-abf4-91180603181f --- param.ccl | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'param.ccl') diff --git a/param.ccl b/param.ccl index 8746ea2..eb1a28c 100644 --- a/param.ccl +++ b/param.ccl @@ -9,6 +9,14 @@ BOOLEAN verbose "Produce screen output" STEERABLE=always { } no + + +# Parameters for collecting metadata + +BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always +{ +} yes + REAL update_interval "Update interval for the meta information (in seconds)" STEERABLE=always { 0:* :: "" @@ -30,14 +38,17 @@ INT metadata_lifetime "Lifetime of meta information sent to a server (in hours)" 1:* :: "a positive value to limit the lifetime to so many hours" } 100 - - -# Parameters for collecting metadata - -BOOLEAN collect_metadata "Collect metadata and output it in various ways" STEERABLE=always +STRING steered_parameters_log_exclusion_list "Parameters for which runtime changes should not be logged" STEERABLE=always { -} yes + "" :: "whitespace-separated list of parameter names" +} "CarpetRegrid::coordinates" +INT nr_of_parameter_changes_to_be_logged "number of parameter changes to be logged" STEERABLE=always +{ + -1: :: "log all changes" + 0: :: "no logs please" + 1:*:: "log this many changes for a given parameter, then stop logging" +} -1 # Parameters for creating files containing the build and job ids -- cgit v1.2.3