From 24cfb08b61c9c55f283ad87a50358757410e18af Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 14 May 2004 10:52:19 +0000 Subject: Check the grid size when running instead of at paramcheck time git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@79 eec4d7dc-71c2-46d6-addf-10296150bf52 --- src/ApplyCartoon.c | 6 ++++++ 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."); -- cgit v1.2.3