summaryrefslogtreecommitdiff
path: root/src/include/cctk_Interp.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-01-29 12:50:38 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-01-29 12:50:38 +0000
commitb2e97393c4d7d5e0c48e8f3fec8a8eb8a3725faf (patch)
tree88dcb0478be29e566897e8475c2e8569503ed326 /src/include/cctk_Interp.h
parentc2b2234990dd7c3bd316e2e01d27654ee3944e66 (diff)
(from Jonathan Thornburg)
* add new error code #define CCTK_ERROR_INTERP_POINT_EXCISED in anticipation of future support for excision * add new error code #define CCTK_ERROR_INTERP_POINT_OUTSIDE as a synomym for CCTK_ERROR_INTERP_POINT_X_RANGE (keeping the old one for backwards compatability) since the old name suggested that this had something to do with the X coordinate * renumber error codes to a more logical order The resulting set of error codes is this: /* * error codes for CCTK_InterpLocalUniform() */ /* the grid is too small for the selected interpolation molecule */ #define CCTK_ERROR_INTERP_GRID_TOO_TINY (-1000) /* an interpolation point is outside the input grid */ #define CCTK_ERROR_INTERP_POINT_OUTSIDE (-1001) /* ... old code for backwards compatability */ #define CCTK_ERROR_INTERP_POINT_X_RANGE (-1001) /* an interpolation point is in an excised region */ #define CCTK_ERROR_INTERP_POINT_EXCISED (-1002) git-svn-id: http://svn.cactuscode.org/flesh/trunk@3116 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Interp.h')
-rw-r--r--src/include/cctk_Interp.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h
index d2fd7747..c0bb59ae 100644
--- a/src/include/cctk_Interp.h
+++ b/src/include/cctk_Interp.h
@@ -144,13 +144,16 @@ int CCTK_InterpLocalUniform(int N_dims,
* error codes for CCTK_InterpLocalUniform()
*/
-/* an interpolation point is outside the range of the input arrays */
-/* n.b. the "X" here abbreviates "not" -- the point could be out of range */
-/* along any coordinate axis */
-#define CCTK_ERROR_INTERP_POINT_X_RANGE (-1000)
-
/* the grid is too small for the selected interpolation molecule */
-#define CCTK_ERROR_INTERP_GRID_TOO_TINY (-1001)
+#define CCTK_ERROR_INTERP_GRID_TOO_TINY (-1000)
+
+/* an interpolation point is outside the input grid */
+#define CCTK_ERROR_INTERP_POINT_OUTSIDE (-1001)
+/* ... old code for backwards compatability */
+#define CCTK_ERROR_INTERP_POINT_X_RANGE (-1001)
+
+/* an interpolation point is in an excised region */
+#define CCTK_ERROR_INTERP_POINT_EXCISED (-1002)
#ifdef __cplusplus
}