aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-05-14 10:52:19 +0000
committerschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-05-14 10:52:19 +0000
commit24cfb08b61c9c55f283ad87a50358757410e18af (patch)
tree6285f3dfb0bde163a24a2408e49393402853e228
parent00ba3e4f99bfe83649f0b891c0e49d778818d751 (diff)
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
-rw-r--r--src/ApplyCartoon.c6
-rw-r--r--src/CheckParameters.c5
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.");