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
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/shared/Alloc/alloc.cpp

     
    9090                #else
    9191                /*Actually, still get rid of internal Petsc matrix. Quick fix until Matlab handles C++
    9292                 * correctly: */
    93                 MatFree(&(*pv)->matrix);
     93                #ifdef _HAVE_PETSC_
     94                        MatFree(&(*pv)->matrix);
    9495                #endif
     96                #endif
    9597                *pv=NULL;
    9698        }
    9799}
     
    107109                #else
    108110                /*Actually, still get rid of internal Petsc vector. Quick fix until Matlab handles C++
    109111                 * correctly: */
    110                 VecFree(&(*pv)->vector);
     112                #ifdef _HAVE_PETSC_
     113                        VecFree(&(*pv)->vector);
    111114                #endif
     115                #endif
    112116                *pv=NULL;
    113117        }
    114118}
Note: See TracBrowser for help on using the repository browser.