source: issm/oecreview/Archive/11718-11730/ISSM-11729-11730.diff@ 11991

Last change on this file since 11991 was 11991, checked in by Eric.Larour, 13 years ago

oecreview from 11518 to present

File size: 850 bytes
RevLine 
[11991]1Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Alloc/alloc.cpp
2===================================================================
3--- /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Alloc/alloc.cpp (revision 11729)
4+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Alloc/alloc.cpp (revision 11730)
5@@ -90,8 +90,10 @@
6 #else
7 /*Actually, still get rid of internal Petsc matrix. Quick fix until Matlab handles C++
8 * correctly: */
9- MatFree(&(*pv)->matrix);
10+ #ifdef _HAVE_PETSC_
11+ MatFree(&(*pv)->matrix);
12 #endif
13+ #endif
14 *pv=NULL;
15 }
16 }
17@@ -107,8 +109,10 @@
18 #else
19 /*Actually, still get rid of internal Petsc vector. Quick fix until Matlab handles C++
20 * correctly: */
21- VecFree(&(*pv)->vector);
22+ #ifdef _HAVE_PETSC_
23+ VecFree(&(*pv)->vector);
24 #endif
25+ #endif
26 *pv=NULL;
27 }
28 }
Note: See TracBrowser for help on using the repository browser.