Ignore:
Timestamp:
Feb 25, 2009, 9:37:22 AM (15 years ago)
Author:
rwilson
Message:

numpy changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/mesh_engine/mesh_engine_c_layer.c

    r6304 r6410  
    6060#include "Python.h"
    6161
     62#include "util_ext.h"
     63
     64
    6265//#define PY_ARRAY_UNIQUE_SYMBOL API_YEAH
    6366
     
    119122    return NULL;
    120123  }
     124
     125  // check that numpy array objects arrays are C contiguous memory
     126  CHECK_C_CONTIG(pointlist);
     127  CHECK_C_CONTIG(seglist);
     128  CHECK_C_CONTIG(holelist);
     129  CHECK_C_CONTIG(regionlist);
     130  CHECK_C_CONTIG(pointattributelist);
     131  CHECK_C_CONTIG(segmarkerlist);
    121132 
    122133  /* Initialize  points */
Note: See TracChangeset for help on using the changeset viewer.