diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-10-27 12:09:19 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 19:54:53 +0000 |
commit | 99a8b0d37b2d2cdcd205526add4a6959b312822a (patch) | |
tree | 84ca50bc2e7485b773144a7750fd08a3dbc7ba38 /Carpet | |
parent | c4df2992484f51ab64a5ae1d5b5083568dc5ecc8 (diff) |
Carpet: Output number of buffer zones on startup
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index 052bf0d30..ce250e44f 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -5,6 +5,7 @@ #include <cmath> #include <cstdlib> #include <cstring> +#include <iomanip> #include <iostream> #include <limits> #include <sstream> @@ -634,14 +635,21 @@ namespace Carpet { >= 0))); } + CCTK_INFO ("Buffer zone counts (excluding ghosts):"); + const streamsize oldprecision = cout.precision(); + const ios_base::fmtflags oldflags = cout.flags(); + cout.setf (ios::fixed); vector<i2vect> buffers (maxreflevels); for (int rl=0; rl<maxreflevels; ++rl) { buffers.AT(rl) = taper_factor * (buffer_factor * ghosts.AT(rl) + int (additional_buffer_zones)) - ghosts.AT(rl); + cout << " [" << rl << "]: " << buffers.AT(rl) << "\n"; assert (all (all (buffers.AT(rl) >= 0))); } + cout.precision (oldprecision); + cout.setf (oldflags); vector<int> const my_prolongation_orders_space = get_prolongation_orders_space (); |