Changeset 4207 for issm/trunk/src/c/objects/Elements/PentaHook.cpp
- Timestamp:
- 06/24/10 16:24:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/PentaHook.cpp
r4178 r4207 29 29 /*FUNCTION PentaHook::~PentaHook(){{{1*/ 30 30 PentaHook::~PentaHook(){ 31 xfree((void**)&hnodes);31 delete [] this->hnodes; 32 32 } 33 33 /*}}}*/ … … 35 35 void PentaHook::InitHookNodes(int in_numanalyses){ 36 36 37 ISSMASSERT(in_numanalyses); 37 this->numanalyses=in_numanalyses; 38 this->hnodes=new Hook[in_numanalyses]; 38 39 39 this->numanalyses=in_numanalyses;40 this->hnodes=(Hook*)xmalloc(in_numanalyses*sizeof(Hook));41 42 for (int i=0;i<in_numanalyses;i++) this->hnodes[i].Init(NULL,0);43 40 } 44 41 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.