aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2005-06-14 13:46:07 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2005-06-14 13:46:07 +0000
commit57e66ad6c345bcc1e7f805ce95ac0ca39bc6184d (patch)
tree4901d9cd37871d666829aa26251c00610f9563d5 /src
parent3b07258fb3f9f42185aafd174a93a80aa29a326f (diff)
* implement new verbose_level option "no output"
* decrease the default verbose_level from "algorithm highlights" down to "physics details" git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1423 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r--src/driver/Newton.cc21
-rw-r--r--src/driver/driver.hh1
-rw-r--r--src/driver/setup.cc4
3 files changed, 16 insertions, 10 deletions
diff --git a/src/driver/Newton.cc b/src/driver/Newton.cc
index aaf918c..2a54d17 100644
--- a/src/driver/Newton.cc
+++ b/src/driver/Newton.cc
@@ -110,15 +110,18 @@ const bool my_active_flag = hs.has_genuine_horizons();
const int N_horizons = hs.N_horizons();
// print out which horizons we're finding on this processor
-if (hs.has_genuine_horizons())
- then CCTK_VInfo(CCTK_THORNSTRING,
- "proc %d: searching for horizon%s %s/%d",
- my_proc,
- (hs.my_N_horizons() > 1 ? "s" : ""),
- hs.sequence_string(","), N_horizons);
- else CCTK_VInfo(CCTK_THORNSTRING,
- "proc %d: dummy horizon(s) only",
- my_proc);
+if (verbose_info.print_physics_details)
+ then {
+ if (hs.has_genuine_horizons())
+ then CCTK_VInfo(CCTK_THORNSTRING,
+ "proc %d: searching for horizon%s %s/%d",
+ my_proc,
+ (hs.my_N_horizons() > 1 ? "s" : ""),
+ hs.sequence_string(","), N_horizons);
+ else CCTK_VInfo(CCTK_THORNSTRING,
+ "proc %d: dummy horizon(s) only",
+ my_proc);
+ }
//
// each pass through this loop finds a single horizon,
diff --git a/src/driver/driver.hh b/src/driver/driver.hh
index d951f97..ae169fd 100644
--- a/src/driver/driver.hh
+++ b/src/driver/driver.hh
@@ -34,6 +34,7 @@ enum method
//
enum verbose_level
{
+ verbose_level__no_output,
verbose_level__physics_highlights,
verbose_level__physics_details,
verbose_level__algorithm_highlights,
diff --git a/src/driver/setup.cc b/src/driver/setup.cc
index 44c0d65..d010d32 100644
--- a/src/driver/setup.cc
+++ b/src/driver/setup.cc
@@ -677,7 +677,9 @@ namespace {
enum verbose_level
decode_verbose_level(const char verbose_level_string[])
{
-if (STRING_EQUAL(verbose_level_string, "physics highlights"))
+if (STRING_EQUAL(verbose_level_string, "no output"))
+ then return verbose_level__no_output;
+else if (STRING_EQUAL(verbose_level_string, "physics highlights"))
then return verbose_level__physics_highlights;
else if (STRING_EQUAL(verbose_level_string, "physics details"))
then return verbose_level__physics_details;