Changeset 6780 for branches/numpy/anuga/shallow_water
- Timestamp:
- Apr 11, 2009, 3:42:49 PM (16 years ago)
- Location:
- branches/numpy/anuga/shallow_water
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/shallow_water/shallow_water_ext.c
r6738 r6780 18 18 #include "math.h" 19 19 #include <stdio.h> 20 21 #include "numpy_shim.h" 20 22 21 23 // Shared code snippets … … 1626 1628 // Allocate space for return vector r (don't DECREF) 1627 1629 dimensions[0] = 3; 1628 r = (PyArrayObject *) PyArray_ZEROS(1, (npy_intp*) dimensions, PyArray_DOUBLE, 0);1630 r = (PyArrayObject *) anuga_FromDims(1, dimensions, PyArray_DOUBLE); 1629 1631 1630 1632 // Copy -
branches/numpy/anuga/shallow_water/urs_ext.c
r6738 r6780 13 13 #include <float.h> 14 14 #include <time.h> 15 16 #include "numpy_shim.h" 15 17 16 18 #define MAX_FILE_NAME_LENGTH 128 … … 788 790 dimensions[1] = num_ts + POFFSET; 789 791 790 pydata = (PyArrayObject*) PyArray_ZEROS(2, (npy_intp*) dimensions, PyArray_DOUBLE, 0);792 pydata = (PyArrayObject*) anuga_FromDims(2, dimensions, PyArray_DOUBLE); 791 793 if(pydata == NULL) 792 794 {
Note: See TracChangeset
for help on using the changeset viewer.