diff options
author | allen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2003-06-07 15:05:36 +0000 |
---|---|---|
committer | allen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52> | 2003-06-07 15:05:36 +0000 |
commit | eb8a2a47531d1673a70b5459488179ca13318dc5 (patch) | |
tree | 85ec4a62445734e02304802bf93f7f97c5cc886b | |
parent | f0aa5f0a532793df780e61e87f877de761d1eacc (diff) |
Add a warning (level 4) is a staggered center has been requested
but is being ignored.
Fixes Cactus/1528
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@178 c78560ca-4b45-4335-b268-5f3340f3cb52
-rw-r--r-- | src/CartGrid3D.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/CartGrid3D.c b/src/CartGrid3D.c index 1ff1047..75a9546 100644 --- a/src/CartGrid3D.c +++ b/src/CartGrid3D.c @@ -8,7 +8,7 @@ @version $Id$ @enddesc @@*/ - + /*#define CARTGRID3D_DEBUG*/ #include <stdio.h> @@ -202,6 +202,11 @@ void CartGrid3D(CCTK_ARGUMENTS) } else { + if (cntstag[0]) + { + CCTK_WARN(4,"Ignoring request to avoid origin in x-direction," + "it is not relevant for this grid type"); + } *coarse_dx = (xmax1 - xmin1) / max(cctk_gsh[0] - 1, 1); x_origin = xmin1; } @@ -221,6 +226,11 @@ void CartGrid3D(CCTK_ARGUMENTS) } else { + if (cntstag[1]) + { + CCTK_WARN(4,"Ignoring request to avoid origin in y-direction," + "it is not relevant for this grid type"); + } *coarse_dy = (ymax1 - ymin1) / max(cctk_gsh[1] - 1, 1); y_origin = ymin1; } @@ -240,6 +250,11 @@ void CartGrid3D(CCTK_ARGUMENTS) } else { + if (cntstag[2]) + { + CCTK_WARN(4,"Ignoring request to avoid origin in z-direction," + "it is not relevant for this grid type"); + } *coarse_dz = (zmax1 - zmin1) / max(cctk_gsh[2] - 1, 1); z_origin = zmin1; } |