diff options
-rw-r--r-- | src/ApplyCartoon.c | 6 | ||||
-rw-r--r-- | src/CheckParameters.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c index 61424e8..3d08ec3 100644 --- a/src/ApplyCartoon.c +++ b/src/ApplyCartoon.c @@ -88,6 +88,12 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) char prolongtype[PROLONG_BUFF_SIZE]; int prolongmethod; + /* Check grid size */ + if(cctk_gsh[1] != 2*cctk_nghostzones[1]+1) + { + CCTK_WARN(0, "Grid size in y direction inappropriate."); + } + /* Allocate memory to hold selected bcs */ num_vars = Boundary_SelectedGVs(cctkGH, 0, NULL, NULL, NULL, NULL, NULL); #ifdef DEBUG diff --git a/src/CheckParameters.c b/src/CheckParameters.c index 90fc1f1..b6d7b9d 100644 --- a/src/CheckParameters.c +++ b/src/CheckParameters.c @@ -61,11 +61,6 @@ void Cartoon2D_CheckParameters(CCTK_ARGUMENTS) DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS - if(cctk_gsh[1] != 2*cctk_nghostzones[1]+1) - { - CCTK_PARAMWARN("Grid size in y direction inappropriate."); - } - if(order > 2*cctk_nghostzones[0]) { CCTK_PARAMWARN("Ghostzone width in x direction too small."); |