diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-27 19:11:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-05-27 19:11:00 +0000 |
commit | ab4fde12c6bbe1cd2e1cc7d13bc37ed11e491bac (patch) | |
tree | 32a7f03a4687546cb9e0cfcb7c3777851a8b8beb /Carpet/CarpetRegrid2/src/initialise.cc | |
parent | 6d6f6d76cfee06823d85e209e64c6bb6bf7c4891 (diff) |
CarpetRegrid2: More output when parameter verbose is set
Output the location of the centres of the refined regions when they change.
darcs-hash:20070527191139-dae7b-16394354ba0ffc6bb9414666546eaa23529db092.gz
Diffstat (limited to 'Carpet/CarpetRegrid2/src/initialise.cc')
-rw-r--r-- | Carpet/CarpetRegrid2/src/initialise.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Carpet/CarpetRegrid2/src/initialise.cc b/Carpet/CarpetRegrid2/src/initialise.cc index 79c20d054..8d1a32ce4 100644 --- a/Carpet/CarpetRegrid2/src/initialise.cc +++ b/Carpet/CarpetRegrid2/src/initialise.cc @@ -140,6 +140,17 @@ namespace CarpetRegrid2 { old_position_y[n] = position_y[n]; old_position_z[n] = position_z[n]; } + + if (verbose) { + for (int n = 0; n < num_centres; ++ n) { + CCTK_VInfo (CCTK_THORNSTRING, + "Initialising position of centre %d to [%g,%g,%g]", + n, + static_cast <double> (position_x[n]), + static_cast <double> (position_y[n]), + static_cast <double> (position_z[n])); + } + } } } // namespace CarpetRegrid2 |