[Yt-svn] yt-commit r430 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Fri May 2 14:52:05 PDT 2008
Author: mturk
Date: Fri May 2 14:52:04 2008
New Revision: 430
URL: http://yt.spacepope.org/changeset/430
Log:
I should probably move to a model wherein I use native ints. However, I will not be doing that now. To get it to work on datastar, I have upgraded the contouring function to use INT64 as indices.
Modified:
trunk/yt/lagos/PointCombine.c
Modified: trunk/yt/lagos/PointCombine.c
==============================================================================
--- trunk/yt/lagos/PointCombine.c (original)
+++ trunk/yt/lagos/PointCombine.c Fri May 2 14:52:04 2008
@@ -583,7 +583,7 @@
static PyObject *_findContoursError;
-npy_int64 process_neighbors(PyArrayObject*, npy_int32, npy_int32, npy_int32);
+npy_int64 process_neighbors(PyArrayObject*, npy_int64, npy_int64, npy_int64);
static PyObject *
Py_FindContours(PyObject *obj, PyObject *args)
{
@@ -607,7 +607,7 @@
}
xi = (PyArrayObject *) PyArray_FromAny(oxi,
- PyArray_DescrFromType(NPY_INT32), 1, 1,
+ PyArray_DescrFromType(NPY_INT64), 1, 1,
NPY_IN_ARRAY, NULL);
if(xi==NULL) {
PyErr_Format(_findContoursError,
@@ -616,7 +616,7 @@
}
yi = (PyArrayObject *) PyArray_FromAny(oyi,
- PyArray_DescrFromType(NPY_INT32), 1, 1,
+ PyArray_DescrFromType(NPY_INT64), 1, 1,
NPY_IN_ARRAY, NULL);
if((yi==NULL) || (PyArray_SIZE(xi) != PyArray_SIZE(yi))) {
PyErr_Format(_findContoursError,
@@ -625,7 +625,7 @@
}
zi = (PyArrayObject *) PyArray_FromAny(ozi,
- PyArray_DescrFromType(NPY_INT32), 1, 1,
+ PyArray_DescrFromType(NPY_INT64), 1, 1,
NPY_IN_ARRAY, NULL);
if((zi==NULL) || (PyArray_SIZE(xi) != PyArray_SIZE(zi))) {
PyErr_Format(_findContoursError,
@@ -656,9 +656,9 @@
return NULL;
}
-npy_int64 process_neighbors(PyArrayObject *con_ids, npy_int32 i, npy_int32 j, npy_int32 k)
+npy_int64 process_neighbors(PyArrayObject *con_ids, npy_int64 i, npy_int64 j, npy_int64 k)
{
- npy_int32 off_i, off_j, off_k;
+ npy_int64 off_i, off_j, off_k;
int spawn_check;
int mi, mj, mk;
npy_int64 *fd_off, *fd_ijk;
More information about the yt-svn
mailing list