def createFromDAG(self, depth, numPoints, coneSize, cones, coneOrientations, vertexCoords): cdef PetscInt cdepth = asInt(depth) cdef const PetscInt *cnumPoints = NULL cdef const PetscInt *cconeSize = NULL cdef const PetscInt *ccones = NULL cdef const PetscInt *cconeOrientations = NULL cdef const PetscScalar *cvertexCoords = NULL cnumPoints = PyArray_DATA(numPoints) cconeSize = PyArray_DATA(coneSize) ccones = PyArray_DATA(cones) cconeOrientations = PyArray_DATA(coneOrientations) cvertexCoords = PyArray_DATA(vertexCoords) CHKERR( DMPlexCreateFromDAG(self.dm, cdepth, cnumPoints, cconeSize, ccones, cconeOrientations, cvertexCoords) ) return self