Index: ../trunk-jpl/src/c/matlab/io/WriteMatlabData.cpp =================================================================== --- ../trunk-jpl/src/c/matlab/io/WriteMatlabData.cpp (revision 13446) +++ ../trunk-jpl/src/c/matlab/io/WriteMatlabData.cpp (revision 13447) @@ -113,7 +113,14 @@ *pdataref=mxCreateString(string); } /*}}}*/ +/*FUNCTION WriteData(mxArray** pdataref){{{*/ +void WriteData(mxArray** pdataref){ + ; + +} +/*}}}*/ + /*ISSM objects*/ /*FUNCTION WriteData(mxArray** pdataref,BamgGeom* bamggeom){{{*/ void WriteData(mxArray** pdataref,BamgGeom* bamggeom){ Index: ../trunk-jpl/src/c/matlab/io/matlabio.h =================================================================== --- ../trunk-jpl/src/c/matlab/io/matlabio.h (revision 13446) +++ ../trunk-jpl/src/c/matlab/io/matlabio.h (revision 13447) @@ -25,6 +25,7 @@ void WriteData(mxArray** pdataref,bool boolean); void WriteData(mxArray** pdataref,double scalar); void WriteData(mxArray** pdataref,char* string); +void WriteData(mxArray** pdataref); void WriteData(mxArray** pdataref,BamgGeom* bamggeom); void WriteData(mxArray** pdataref,BamgMesh* bamgmesh); Index: ../trunk-jpl/src/c/python/io/WritePythonData.cpp =================================================================== --- ../trunk-jpl/src/c/python/io/WritePythonData.cpp (revision 13446) +++ ../trunk-jpl/src/c/python/io/WritePythonData.cpp (revision 13447) @@ -45,7 +45,13 @@ PyTuple_SetItem(tuple, index, array); }/*}}}*/ +/*FUNCTION WriteData(PyObject* py_tuple,int index){{{*/ +void WriteData(PyObject* py_tuple, int index){ + + PyTuple_SetItem(py_tuple, index, Py_None); +}/*}}}*/ + /*ISSM objects*/ /*FUNCTION WriteData(PyObject* py_tuple,int index,BamgGeom* bamggeom){{{*/ void WriteData(PyObject* py_tuple,int index,BamgGeom* bamggeom){ @@ -127,7 +133,7 @@ }/*}}}*/ /*FUNCTION WriteData(PyObject* py_tuple,int index,SeqVec* vector){{{*/ -void WriteData(PyObject* tuple,int index,SeqVec* vector){ +void WriteData(PyObject* py_tuple,int index,SeqVec* vector){ int M; double* buffer=NULL; @@ -139,6 +145,6 @@ dim=(npy_intp)M; array=PyArray_SimpleNewFromData(1,&dim,NPY_DOUBLE,buffer); - PyTuple_SetItem(tuple, index, array); + PyTuple_SetItem(py_tuple, index, array); } /*}}}*/ Index: ../trunk-jpl/src/modules/ContourToMesh/ContourToMesh.cpp =================================================================== --- ../trunk-jpl/src/modules/ContourToMesh/ContourToMesh.cpp (revision 13446) +++ ../trunk-jpl/src/modules/ContourToMesh/ContourToMesh.cpp (revision 13447) @@ -72,9 +72,11 @@ /* output: */ if (strcmp(interptype,"node")==0){ WriteData(PLHS0,in_nod); + WriteData(PLHS1); } else if (strcmp(interptype,"element")==0){ WriteData(PLHS0,in_elem); + WriteData(PLHS1); } else if (strcmp(interptype,"element and node")==0){ WriteData(PLHS0,in_nod);