Changeset 3817
- Timestamp:
- 05/18/10 13:40:46 (15 years ago)
- Location:
- issm/trunk/src/c/objects/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r3811 r3817 45 45 int penta_matice_id; 46 46 int penta_matpar_id; 47 int penta_element _ids[2];47 int penta_elements_ids[2]; 48 48 double nodeinputs[6]; 49 49 bool collapse; … … 58 58 penta_matice_id=index+1; //refers to the corresponding ice material object 59 59 penta_matpar_id=iomodel->numberofelements+1; //refers to the constant material parameters object 60 penta_elements_ids[0]=(int) *(iomodel->upperelements[index]);61 penta_elements_ids[1]=(int) *(iomodel->lowerelements[index]);60 penta_elements_ids[0]=(int)(iomodel->upperelements[index]); 61 penta_elements_ids[1]=(int)(iomodel->lowerelements[index]); 62 62 63 63 this->InitHookNodes(penta_node_ids); this->nodes=NULL; 64 64 this->InitHookMatice(penta_matice_id);this->matice=NULL; 65 65 this->InitHookMatpar(penta_matpar_id);this->matpar=NULL; 66 this->InitHookNeighboors(penta_element _ids);this->neighboors=NULL;66 this->InitHookNeighboors(penta_elements_ids);this->neighboors=NULL; 67 67 68 68 //intialize inputs, and add as many inputs per element as requested: … … 208 208 penta->matice=(Matice*)penta->hmatice.delivers(); 209 209 penta->matpar=(Matpar*)penta->hmatpar.delivers(); 210 penta->neighboors=(Penta* *)penta->hneighboors.deliverp();210 penta->neighboors=(Penta*)penta->hneighboors.deliverp(); 211 211 212 212 return penta; … … 229 229 this->matice=(Matice*)this->hmatice.delivers(); 230 230 this->matpar=(Matpar*)this->hmatpar.delivers(); 231 this->neighboors=(Penta* *)this->hneighboors.deliverp();231 this->neighboors=(Penta*)this->hneighboors.deliverp(); 232 232 233 233 /*point parameters to real dataset: */ … … 286 286 matice->DeepEcho(); 287 287 matpar->DeepEcho(); 288 printf(" neig boor ids: %i-%i\n",neigboors[0]->Id(),neigboors[1]->Id());288 printf(" neighbor ids: %i-%i\n",neighbors[0]->Id(),neighbors[1]->Id()); 289 289 printf(" parameters\n"); 290 290 parameters->DeepEcho(); -
issm/trunk/src/c/objects/Elements/Penta.h
r3811 r3817 32 32 Matice *matice; // 1 material ice 33 33 Matpar *matpar; // 1 material parameter 34 Penta *neighbo ors; // 2 neighboors: first one under, second one above34 Penta *neighbors; // 2 neighbors: first one under, second one above 35 35 36 36 Parameters *parameters; //pointer to solution parameters
Note:
See TracChangeset
for help on using the changeset viewer.