aboutsummaryrefslogtreecommitdiff
path: root/src/CartGrid3D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CartGrid3D.c')
-rw-r--r--src/CartGrid3D.c17
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;
}