source: issm/oecreview/Archive/11748-11766/ISSM-11754-11755.diff

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

oecreview from 11518 to present

File size: 623 bytes
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Numerics/Vector.cpp

     
    7373Vector::Vector(Vec petsc_vec){
    7474
    7575        if(petsc_vec==NULL){
    76                 this->vector=NULL;
     76                this->vector=NewVec(0);
    7777        }
    7878        else{
    7979                /*copy vector*/
     
    215215bool Vector::IsEmpty(void){
    216216
    217217        int M;
     218
     219        _assert_(this->vector);
    218220        this->GetSize(&M);
    219221
    220222        if(M==0)
Note: See TracBrowser for help on using the repository browser.