aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl2
-rw-r--r--src/setup.cc3
2 files changed, 5 insertions, 0 deletions
diff --git a/param.ccl b/param.ccl
index 4217adf..231cb0b 100644
--- a/param.ccl
+++ b/param.ccl
@@ -19,6 +19,8 @@ CCTK_STRING name[42] "User friendly name of spherical surface" STEERABLE=always
} ""
+# Warning: this will MPI hang when the number of components per refinement
+# level differs between processors
BOOLEAN auto_res[42] "Automatically determine resolution according to radius and Cartesian resolution"
{
} no
diff --git a/src/setup.cc b/src/setup.cc
index db6a92f..76bf945 100644
--- a/src/setup.cc
+++ b/src/setup.cc
@@ -336,6 +336,9 @@ extern "C" void SphericalSurface_SetupRes (CCTK_ARGUMENTS)
// can decide which reflevel to use
// set resolution according to Radius and Cartesian resolution
+
+ if (!auto_res[n])
+ continue;
CCTK_REAL my_radius;