Changeset 13801


Ignore:
Timestamp:
10/22/12 15:24:06 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: never throw exceptions in destructors as this might trigger weird behavior

Location:
issm/trunk-jpl/src/c/classes/matrix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/classes/matrix/Matrix.h

    r13780 r13801  
    163163                                #ifdef _HAVE_PETSC_
    164164                                delete this->pmatrix;
    165                                 #else
    166                                 _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    167165                                #endif
    168166                        }
     
    170168                                delete this->smatrix;
    171169                        }
    172                         else _error_("Matrix type: " << type << " not supported yet!");
    173170
    174171                }
  • TabularUnified issm/trunk-jpl/src/c/classes/matrix/Vector.h

    r13623 r13801  
    110110                                #ifdef _HAVE_PETSC_
    111111                                delete this->pvector;
    112                                 #else
    113                                 _error_("Petsc matrix format not usable, as Petsc has not been compiled!");
    114112                                #endif
    115113                        }
     
    117115                                delete this->svector;
    118116                        }
    119                         else _error_("Vector type: " << type << " not supported yet!");
    120117                }
    121118                /*}}}*/
Note: See TracChangeset for help on using the changeset viewer.