Changeset 11730


Ignore:
Timestamp:
03/19/12 20:09:17 (13 years ago)
Author:
Eric.Larour
Message:

Avoid potential API issue when Petsc is absent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Alloc/alloc.cpp

    r11705 r11730  
    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);
     95                #endif
    9496                #endif
    9597                *pv=NULL;
     
    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);
     114                #endif
    111115                #endif
    112116                *pv=NULL;
Note: See TracChangeset for help on using the changeset viewer.