# Parameter definitions for thorn IOBasic # $Header$ ############################################################################# ### declare IOBasic parameters ############################################################################# private: ########################## # Directory to output to ########################## STRING out_dir "Output directory for IOBasic's scalar files, overrides IO::out_dir" STEERABLE = RECOVER { ".+" :: "A valid directory name" "^$" :: "An empty string to choose the default from IO::out_dir" } "" STRING outdirScalar "Output directory for IOBasic's scalar files, overrides IO::out_dir (DEPRECATED IN BETA13)" STEERABLE = RECOVER { ".+" :: "A valid directory name" "^$" :: "An empty string to choose the default from IO::out_dir" } "" ########################## # What variables to output ########################## STRING outInfo_vars "Variables to output as Info to screen" STEERABLE = ALWAYS { ".+" :: "Space-separated list of fully qualified variable/group names" "^$" :: "An empty string to output nothing" } "" STRING outScalar_vars "Variables to output into files" STEERABLE = ALWAYS { ".+" :: "Space-separated list of fully qualified variable/group names" "^$" :: "An empty string to output nothing" } "" ########################## # What reductions to output ########################## STRING outInfo_reductions "List of reductions to output as Info to screen" STEERABLE = ALWAYS { ".+" :: "Space-separated list of reduction operators" } "minimum maximum" STRING outScalar_reductions "List of reductions to output into files" STEERABLE = ALWAYS { ".+" :: "Space-separated list of reduction operators" } "minimum maximum norm1 norm2" ######################## # How often to do output ######################## INT outInfo_every "How often to do Info output" STEERABLE = ALWAYS { 1:* :: "Every so many iterations" 0: :: "Disable Info output" -1: :: "Default to IO::out_every" } -1 INT outScalar_every "How often to do Scalar output" STEERABLE = ALWAYS { 1:* :: "Every so many iterations" 0: :: "Disable Scalar output" -1: :: "Default to IO::out_every" } -1 ##################### # Scalar output style ##################### KEYWORD outScalar_style "Which style for Scalar output" { "gnuplot" :: "1D output readable by gnuplot" "xgraph" :: "1D output readable by xgraph" } "xgraph" STRING out_format "Which format for Scalar floating-point number output" STEERABLE = ALWAYS { ^(\.[1]?[0-9])?[EGefg]$ :: "output with given precision in exponential / floating point notation" } ".13f" ############################################################################# ### import IOUtil parameters ############################################################################# shares: IO USES STRING out_dir AS io_out_dir USES INT out_every USES KEYWORD verbose USES BOOLEAN new_filename_scheme EXTENDS KEYWORD out_fileinfo { "axis labels" :: "add axis labels information to output files" }