Changeset 4412
- Timestamp:
- 07/06/10 11:49:28 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
- 
      - 2 edited
 
 - 
          
  PentaHook.cpp (modified) (2 diffs)
- 
          
  TriaHook.cpp (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      issm/trunk/src/c/objects/Elements/PentaHook.cppr4410 r4412 36 36 37 37 for(i=0;i<this->numanalyses;i++){ 38 delete this->hnodes[i];38 if (this->hnodes[i]) delete this->hnodes[i]; 39 39 } 40 40 delete [] this->hnodes; … … 83 83 for(i=0;i<this->numanalyses;i++){ 84 84 /*Do not do anything if Hook is empty*/ 85 if (this->hnodes[i]->GetNum()==0) continue; 86 /*Else, spawn Hook*/ 87 triahook->hnodes[i]=this->hnodes[i]->Spawn(indices,3); 85 if (!this->hnodes[i] || this->hnodes[i]->GetNum()==0){ 86 triahook->hnodes[i]=NULL; 87 } 88 else{ 89 /*Else, spawn Hook*/ 90 triahook->hnodes[i]=this->hnodes[i]->Spawn(indices,3); 91 } 88 92 } 89 93 triahook->hmatice=(Hook*)this->hmatice->copy(); 
- 
      issm/trunk/src/c/objects/Elements/TriaHook.cppr4410 r4412 34 34 35 35 for(i=0;i<this->numanalyses;i++){ 36 delete this->hnodes[i];36 if (this->hnodes[i]) delete this->hnodes[i]; 37 37 } 38 38 delete [] this->hnodes; 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)
