diff options
-rw-r--r-- | param.ccl | 2 | ||||
-rw-r--r-- | src/setup.cc | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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; |