Changeset 11694


Ignore:
Timestamp:
03/13/12 19:29:55 (13 years ago)
Author:
Eric.Larour
Message:

Improved quick fix, going back to Mathieu's bug fix

File:
1 edited

Legend:

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

    r11693 r11694  
    8888                 * free in parallel: */
    8989                delete *pv;
     90                #else
     91                /*Actually, still get rid of internal Petsc matrix. Quick fix until Matlab handles C++
     92                 * correctly: */
     93                MatFree(&(*pv)->matrix);
    9094                #endif
    9195                *pv=NULL;
     
    101105                 * free in parallel: */
    102106                delete *pv;
     107                #else
     108                /*Actually, still get rid of internal Petsc vector. Quick fix until Matlab handles C++
     109                 * correctly: */
     110                VecFree(&(*pv)->vector);
    103111                #endif
    104112                *pv=NULL;
Note: See TracChangeset for help on using the changeset viewer.