Changeset 6717 for anuga_core/source/anuga/utilities/util_ext.h
- Timestamp:
- Apr 3, 2009, 3:03:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/util_ext.h
r5897 r6717 261 261 262 262 B = (PyArrayObject*) PyObject_GetAttrString(O, name); 263 264 //printf("B = %p\n",(void*)B); 263 265 if (!B) { 264 PyErr_SetString(PyExc_RuntimeError, "util_ext.h: get_consecutive_array could not obtain array"); 266 printf("util_ext.h: get_consecutive_array could not obtain python object"); 267 printf(" %s\n",name); 268 fflush(stdout); 269 PyErr_SetString(PyExc_RuntimeError, "util_ext.h: get_consecutive_array could not obtain python object"); 265 270 return NULL; 266 271 } … … 273 278 274 279 if (!A) { 280 printf("util_ext.h: get_consecutive_array could not obtain array object"); 281 printf(" %s \n",name); 282 fflush(stdout); 275 283 PyErr_SetString(PyExc_RuntimeError, "util_ext.h: get_consecutive_array could not obtain array"); 276 284 return NULL; 277 285 } 286 287 278 288 return A; 279 289 }
Note: See TracChangeset
for help on using the changeset viewer.