Changeset 15008
- Timestamp:
- 05/10/13 11:49:20 (12 years ago)
- Location:
- issm/trunk-jpl/src/wrappers
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/AverageFilter/AverageFilter.cpp
r13236 r15008 30 30 int smooth; 31 31 32 33 32 /* output: */ 34 mxArray* pfield=NULL;35 33 double* imageout=NULL; 36 34 int imageout_rows,imageout_cols; … … 52 50 WriteData(IMAGEOUT,imageout,imagein_rows,imagein_cols); 53 51 52 /*free ressources: */ 53 xDelete<double>(imagein); 54 xDelete<double>(imageout); 55 54 56 /*end module: */ 55 57 MODULEEND(); -
issm/trunk-jpl/src/wrappers/BamgConvertMesh/BamgConvertMesh.cpp
r13243 r15008 54 54 55 55 /*Clean up*/ 56 xDelete<int>(index); 57 xDelete<double>(x); 58 xDelete<double>(y); 56 59 delete bamggeom; 57 60 delete bamgmesh; -
issm/trunk-jpl/src/wrappers/BamgMesher/BamgMesher.cpp
r13287 r15008 12 12 13 13 /*Intermediary*/ 14 BamgOpts *bamgopts =NULL;15 BamgMesh *bamgmesh_in =NULL;16 BamgGeom *bamggeom_in =NULL;17 BamgMesh *bamgmesh_out =NULL;18 BamgGeom *bamggeom_out =NULL;14 BamgOpts *bamgopts = NULL; 15 BamgMesh *bamgmesh_in = NULL; 16 BamgGeom *bamggeom_in = NULL; 17 BamgMesh *bamgmesh_out = NULL; 18 BamgGeom *bamggeom_out = NULL; 19 19 20 20 /*Boot module*/ -
issm/trunk-jpl/src/wrappers/BamgTriangulate/BamgTriangulate.cpp
r13236 r15008 20 20 int x_cols; 21 21 int y_rows,y_cols; 22 int nods;22 int nods; 23 23 24 24 /*Output*/ … … 52 52 WriteData(INDEX,index,nels,3); 53 53 54 /*Clean up*/ 55 xDelete<int>(index); 56 xDelete<double>(x); 57 xDelete<double>(y); 58 54 59 /*end module: */ 55 60 MODULEEND(); -
issm/trunk-jpl/src/wrappers/ContourToMesh/ContourToMesh.cpp
r14965 r15008 31 31 /* required input: */ 32 32 int edgevalue; 33 int nel,nods; 33 34 double *index = NULL; 34 int nel;35 35 double *x = NULL; 36 int nods;37 36 double *y = NULL; 38 37 char *interptype = NULL; … … 85 84 else _error_("wrong interpolation type"); 86 85 86 /*Clean up*/ 87 xDelete<double>(index); 88 xDelete<double>(x); 89 xDelete<double>(y); 90 xDelete<char>(interptype); 91 delete contours; 92 delete in_nod; 93 delete in_elem; 87 94 /*end module: */ 88 95 MODULEEND(); -
issm/trunk-jpl/src/wrappers/ContourToNodes/ContourToNodes.cpp
r14965 r15008 45 45 WriteData(FLAGS,flags,nods); 46 46 47 /*Clean up*/ 48 xDelete<double>(x); 49 xDelete<double>(y); 50 xDelete<char>(contourname); 51 delete contours; 52 47 53 /*end module: */ 48 54 MODULEEND(); -
issm/trunk-jpl/src/wrappers/EdgeDetection/EdgeDetection.cpp
r14717 r15008 19 19 }/*}}}*/ 20 20 WRAPPER(EdgeDetection){ 21 22 int i,j;23 21 24 22 /*input: */ … … 47 45 WriteData(CONTOURS,contours); 48 46 47 /*Clean up*/ 48 xDelete<bool>(image); 49 delete contours; 50 49 51 /*end module: */ 50 52 MODULEEND(); -
issm/trunk-jpl/src/wrappers/ElementConnectivity/ElementConnectivity.cpp
r14014 r15008 37 37 WriteData(ELEMENTCONNECTIVITY,elementconnectivity,nels,3); 38 38 39 /*Clean up*/ 40 xDelete<int>(nodeconnectivity); 41 xDelete<int>(elementconnectivity); 42 39 43 /*end module: */ 40 44 MODULEEND(); -
issm/trunk-jpl/src/wrappers/EnumToString/EnumToString.cpp
r13236 r15008 30 30 WriteData(NAME,name); 31 31 32 /*Clean up*/ 33 xDelete<char>(name); 34 32 35 /*end module: */ 33 36 MODULEEND(); -
issm/trunk-jpl/src/wrappers/HoleFiller/HoleFiller.cpp
r13236 r15008 23 23 WRAPPER(HoleFiller){ 24 24 25 int i,j;26 27 25 /* required input: */ 28 26 double* imagein=NULL; … … 33 31 34 32 /* output: */ 35 mxArray* pfield=NULL;36 33 double* imageout=NULL; 37 34 int imageout_rows,imageout_cols; … … 59 56 WriteData(IMAGEOUT,imageout,imagein_rows,imagein_cols); 60 57 58 /*Clean up*/ 59 xDelete<double>(imagein); 60 xDelete<double>(imageout); 61 xDelete<double>(imagein); 62 61 63 /*end module: */ 62 64 MODULEEND();
Note:
See TracChangeset
for help on using the changeset viewer.