Changeset 4410
- Timestamp:
- 07/06/10 11:22:23 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ConfigureObjectsx/ConfigureObjectsx.cpp
r4218 r4410 23 23 parameters->FindParam(&analysis_type,AnalysisTypeEnum); 24 24 25 //_printf_(" Configuring elements...\n");25 _printf_(" Configuring elements...\n"); 26 26 for (i=0;i<elements->Size();i++){ 27 27 element=(Element*)elements->GetObjectByOffset(i); 28 28 element->Configure(elements,loads,nodes,materials,parameters); 29 29 } 30 //_printf_(" Configuring loads...\n");30 _printf_(" Configuring loads...\n"); 31 31 for (i=0;i<loads->Size();i++){ 32 32 load=(Load*)loads->GetObjectByOffset(i); … … 35 35 } 36 36 } 37 //_printf_(" Configuring nodes...\n");37 _printf_(" Configuring nodes...\n"); 38 38 for (i=0;i<nodes->Size();i++){ 39 39 node=(Node*)nodes->GetObjectByOffset(i); -
issm/trunk/src/c/objects/Elements/Penta.cpp
r4405 r4410 602 602 /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective 603 603 * datasets, using internal ids and offsets hidden in hooks: */ 604 this->hnodes[analysis_counter]->configure(nodesin);604 if (this->hnodes[analysis_counter]) this->hnodes[analysis_counter]->configure(nodesin); 605 605 this->hmatice->configure(materialsin); 606 606 this->hmatpar->configure(materialsin); … … 608 608 609 609 /*Now, go pick up the objects inside the hooks: */ 610 this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp(); 610 if (this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp(); 611 else this->nodes=NULL; 611 612 this->matice=(Matice*)this->hmatice->delivers(); 612 613 this->matpar=(Matpar*)this->hmatpar->delivers(); -
issm/trunk/src/c/objects/Elements/PentaHook.cpp
r4396 r4410 53 53 this->hneighbors=NULL; 54 54 55 //Initialize hnodes as NULL 56 for(int i=0;i<this->numanalyses;i++){ 57 this->hnodes[i]=NULL; 58 } 59 55 60 } 56 61 /*}}}*/ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4405 r4410 487 487 /*Take care of hooking up all objects for this element, ie links the objects in the hooks to their respective 488 488 * datasets, using internal ids and offsets hidden in hooks: */ 489 this->hnodes[analysis_counter]->configure(nodesin);489 if(this->hnodes[analysis_counter]) this->hnodes[analysis_counter]->configure(nodesin); 490 490 this->hmatice->configure(materialsin); 491 491 this->hmatpar->configure(materialsin); 492 492 493 493 /*Now, go pick up the objects inside the hooks: */ 494 this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp(); 494 if(this->hnodes[analysis_counter]) this->nodes=(Node**)this->hnodes[analysis_counter]->deliverp(); 495 else this->nodes=NULL; 495 496 this->matice=(Matice*)this->hmatice->delivers(); 496 497 this->matpar=(Matpar*)this->hmatpar->delivers(); -
issm/trunk/src/c/objects/Elements/TriaHook.cpp
r4401 r4410 50 50 this->hmatpar=new Hook(&matpar_id,1); 51 51 52 //Initialize hnodes 52 //Initialize hnodes as NULL 53 53 for(int i=0;i<this->numanalyses;i++){ 54 this->hnodes[i]= new Hook();54 this->hnodes[i]=NULL; 55 55 } 56 56 … … 60 60 void TriaHook::SetHookNodes(int* node_ids,int analysis_counter){ 61 61 62 /*Delete existing Hook (empty)*/ 63 delete this->hnodes[analysis_counter]; 64 65 /*Replace by new Hook*/ 62 /*initialize hook*/ 66 63 this->hnodes[analysis_counter]=new Hook(node_ids,3); 67 64 }
Note:
See TracChangeset
for help on using the changeset viewer.