diff options
author | schnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2004-05-14 10:52:19 +0000 |
---|---|---|
committer | schnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2004-05-14 10:52:19 +0000 |
commit | 24cfb08b61c9c55f283ad87a50358757410e18af (patch) | |
tree | 6285f3dfb0bde163a24a2408e49393402853e228 /src/ApplyCartoon.c | |
parent | 00ba3e4f99bfe83649f0b891c0e49d778818d751 (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
Diffstat (limited to 'src/ApplyCartoon.c')
-rw-r--r-- | src/ApplyCartoon.c | 6 |
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 |