Changeset 11693
- Timestamp:
- 03/13/12 19:26:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp
r11692 r11693 81 81 82 82 void xdelete(Matrix** pv){ 83 83 84 if (pv && *pv){ 85 #ifdef _HAVE_PARALLEL_ 86 /*There is no mxDelete in the Matlab API -> using delete trips up Matlab. So we 87 * don't actually free memory in Matlab, we let the memory manager do that. We only 88 * free in parallel: */ 84 89 delete *pv; 90 #endif 85 91 *pv=NULL; 86 92 } … … 88 94 89 95 void xdelete(Vector** pv){ 96 90 97 if (pv && *pv){ 91 //delete *pv; 92 VecFree(&(*pv)->vector); 98 #ifdef _HAVE_PARALLEL_ 99 /*There is no mxDelete in the Matlab API -> using delete trips up Matlab. So we 100 * don't actually free memory in Matlab, we let the memory manager do that. We only 101 * free in parallel: */ 102 delete *pv; 103 #endif 93 104 *pv=NULL; 94 105 }
Note:
See TracChangeset
for help on using the changeset viewer.