aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetRegrid2/param.ccl6
-rw-r--r--Carpet/CarpetRegrid2/src/regrid.cc4
2 files changed, 9 insertions, 1 deletions
diff --git a/Carpet/CarpetRegrid2/param.ccl b/Carpet/CarpetRegrid2/param.ccl
index f16df1ec4..ac15a7c0c 100644
--- a/Carpet/CarpetRegrid2/param.ccl
+++ b/Carpet/CarpetRegrid2/param.ccl
@@ -1,5 +1,11 @@
# Parameter definitions for thorn CarpetRegrid2
+BOOLEAN verbose "Display regridding information on the terminal" STEERABLE=always
+{
+} "no"
+
+
+
CCTK_INT num_centres "Number of refinement centres" STEERABLE=always
{
0:3 :: ""
diff --git a/Carpet/CarpetRegrid2/src/regrid.cc b/Carpet/CarpetRegrid2/src/regrid.cc
index 078ae3d61..266799aee 100644
--- a/Carpet/CarpetRegrid2/src/regrid.cc
+++ b/Carpet/CarpetRegrid2/src/regrid.cc
@@ -175,6 +175,8 @@ namespace CarpetRegrid2 {
{
DECLARE_CCTK_PARAMETERS;
+ if (verbose) CCTK_INFO ("Regridding");
+
assert (Carpet::is_singlemap_mode());
gh const & hh = * Carpet::vhh.at (Carpet::map);
dh const & dd = * Carpet::vdd.at (Carpet::map);
@@ -276,7 +278,7 @@ namespace CarpetRegrid2 {
} // for n
- // Ensure that the coarser grids contain the finer ones
+ // Ensure that the coarser grids contain the finer ones
for (size_t rl = regions.size() - 1; rl >= 2; -- rl) {
ibbox coarse = * regions.at(rl-1).begin();