source: issm/oecreview/Archive/11748-11766/ISSM-11754-11755.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: 623 bytes
RevLine 
[11991]1Index: /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Numerics/Vector.cpp
2===================================================================
3--- /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Numerics/Vector.cpp (revision 11754)
4+++ /proj/ice/larour/issm-uci-clean/trunk-jpl/src/c/objects/Numerics/Vector.cpp (revision 11755)
5@@ -73,7 +73,7 @@
6 Vector::Vector(Vec petsc_vec){
7
8 if(petsc_vec==NULL){
9- this->vector=NULL;
10+ this->vector=NewVec(0);
11 }
12 else{
13 /*copy vector*/
14@@ -215,6 +215,8 @@
15 bool Vector::IsEmpty(void){
16
17 int M;
18+
19+ _assert_(this->vector);
20 this->GetSize(&M);
21
22 if(M==0)
Note: See TracBrowser for help on using the repository browser.