Changeset 4378
- Timestamp:
- 07/01/10 09:16:46 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r4371 r4378 1794 1794 1795 1795 /*recover nodes, matice and matpar: */ 1796 t his->nodes=(Node**)this->hnodes[analysis_counter].deliverp();1797 t his->matice=(Matice*)this->hmatice.delivers();1798 t his->matpar=(Matpar*)this->hmatpar.delivers();1796 tria->nodes=(Node**)tria->hnodes[analysis_counter].deliverp(); 1797 tria->matice=(Matice*)tria->hmatice.delivers(); 1798 tria->matpar=(Matpar*)tria->hmatpar.delivers(); 1799 1799 1800 1800 return tria; -
issm/trunk/src/c/objects/Elements/PentaHook.cpp
r4369 r4378 72 72 73 73 for(i=0;i<this->numanalyses;i++){ 74 /*Do not do anything if Hook is empty*/ 75 if (this->hnodes[i].GetNum()==0) continue; 76 /*Else, spawn Hook*/ 74 77 this->hnodes[i].Spawn(&triahook->hnodes[i],indices,3); 75 78 } 76 77 this->hmatice.copy(&triahook->hmatice); 78 this->hmatpar.copy(&triahook->hmatpar); 79 triahook->hmatice.copy(&this->hmatice); 80 triahook->hmatpar.copy(&this->hmatpar); 79 81 } 80 82 /*}}}*/ -
issm/trunk/src/c/objects/Hook.cpp
r4369 r4378 367 367 int i; 368 368 369 /*If this Hook is empty, simply return*/ 370 if(this->num==0){ 371 spawnedhook->num=0; 372 return; 373 } 374 375 /*Else, check that we are requesting a half of num*/ 376 if (numindices>this->num) ISSMERROR("Cannot spawn hook with %i objects from a Hook of %i objects",numindices,this->num); 377 369 378 /*go pickup the correct objects, ids and offsets :*/ 370 379 spawnedhook->num=numindices;
Note:
See TracChangeset
for help on using the changeset viewer.