aboutsummaryrefslogtreecommitdiff
path: root/src/ApplyCartoon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ApplyCartoon.c')
-rw-r--r--src/ApplyCartoon.c6
1 files changed, 6 insertions, 0 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