aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorschnetter <>2001-12-05 18:34:00 +0000
committerschnetter <>2001-12-05 18:34:00 +0000
commit2a7bd4a8226d666b4eec6c6f0454c86585ff640f (patch)
tree256ba4e4cc66c8102603f459ed1604a5e09c3055 /Carpet
parentad4eab469944f1f75518f003a07106137a0c7b65 (diff)
Added new parameter "refined_regions" that decides how the refined
Added new parameter "refined_regions" that decides how the refined regions are selected. This is for backwards compatibility. darcs-hash:20011205183430-07bb3-43a681a742d8d2b3ad6b1385109176c20732926b.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/Carpet/param.ccl8
-rw-r--r--Carpet/Carpet/src/SetupGH.cc9
2 files changed, 13 insertions, 4 deletions
diff --git a/Carpet/Carpet/param.ccl b/Carpet/Carpet/param.ccl
index be9b780ea..f3997bcc6 100644
--- a/Carpet/Carpet/param.ccl
+++ b/Carpet/Carpet/param.ccl
@@ -1,5 +1,5 @@
# Parameter definitions for thorn Carpet
-# $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/param.ccl,v 1.11 2001/12/05 03:31:55 schnetter Exp $
+# $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/param.ccl,v 1.12 2001/12/05 19:34:30 schnetter Exp $
shares: Cactus
@@ -151,6 +151,12 @@ CCTK_INT processor_topology_3d_z "Number of processors in z-direction"
+KEYWORD refined_regions "Regions where the grid is refined"
+{
+ "centre" :: "Refine (arbitrarily) the centre of the grid only"
+ "manual" :: "Refine the regions specified by l[123][xyz]{min,max}"
+} "centre"
+
CCTK_INT l1xmin "Lower boundary of level 1 box in x-direction"
{
: :: ""
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 2ff02193f..1c0af87e4 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -10,7 +10,7 @@
#include "carpet.hh"
-static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/SetupGH.cc,v 1.12 2001/12/05 03:31:56 schnetter Exp $";
+static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/SetupGH.cc,v 1.13 2001/12/05 19:34:30 schnetter Exp $";
@@ -234,8 +234,11 @@ namespace Carpet {
// Invent a refinement structure
gh<dim>::rexts bbsss;
gh<dim>::rprocs pss;
-// MakeRegions_RefineCentre (cgh, maxreflevels, bbsss);
- MakeRegions_AsSpecified (cgh, maxreflevels, bbsss);
+ if (CCTK_EQUALS (refined_regions, "centre")) {
+ MakeRegions_RefineCentre (cgh, maxreflevels, bbsss);
+ } else if (CCTK_EQUALS (refined_regions, "manual")) {
+ MakeRegions_AsSpecified (cgh, maxreflevels, bbsss);
+ }
if (CCTK_EQUALS (processor_topology, "automatic")) {
SplitRegions_AlongZ (cgh, bbsss);
} else if (CCTK_EQUALS (processor_topology, "manual")) {