Changeset 4696
- Timestamp:
- 07/21/10 12:32:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Loads/Riftfront.cpp
r4575 r4696 35 35 /*data: */ 36 36 int riftfront_node_ids[2]; 37 int riftfront_elem_ids[2]; 37 38 int riftfront_matpar_id; 38 39 int riftfront_type; … … 60 61 riftfront_node_ids[0]=iomodel->nodecounter+grid1; 61 62 riftfront_node_ids[1]=iomodel->nodecounter+grid2; 63 riftfront_elem_ids[0]=el1; 64 riftfront_elem_ids[1]=el2; 62 65 riftfront_matpar_id=iomodel->numberofelements+1; //matlab indexing 63 66 64 67 this->hnodes=new Hook(riftfront_node_ids,2); 68 this->helements=new Hook(riftfront_elem_ids,2); 65 69 this->hmatpar=new Hook(&riftfront_matpar_id,1); 66 70 … … 102 106 this->parameters=NULL; 103 107 delete hnodes; 108 delete helements; 104 109 delete hmatpar; 105 110 delete helements; … … 120 125 printf(" analysis_type: %s\n",EnumAsString(analysis_type)); 121 126 hnodes->DeepEcho(); 127 helements->DeepEcho(); 122 128 hmatpar->DeepEcho(); 123 129 printf(" parameters\n"); … … 168 174 /*Marshall hooks: */ 169 175 hnodes->Marshall(&marshalled_dataset); 176 helements->Marshall(&marshalled_dataset); 170 177 hmatpar->Marshall(&marshalled_dataset); 171 178 … … 199 206 +sizeof(penalty_lock) 200 207 +hnodes->MarshallSize() 208 +helements->MarshallSize() 201 209 +hmatpar->MarshallSize() 202 210 +inputs->MarshallSize() … … 231 239 /*demarshall hooks: */ 232 240 hnodes=new Hook(); hnodes->Demarshall(&marshalled_dataset); 241 helements=new Hook(); helements->Demarshall(&marshalled_dataset); 233 242 hmatpar=new Hook(); hmatpar->Demarshall(&marshalled_dataset); 234 243 … … 271 280 /*now deal with hooks and objects: */ 272 281 riftfront->hnodes=(Hook*)this->hnodes->copy(); 282 riftfront->helements=(Hook*)this->helements->copy(); 273 283 riftfront->hmatpar=(Hook*)this->hmatpar->copy(); 274 284 … … 285 295 * datasets, using internal ids and offsets hidden in hooks: */ 286 296 hnodes->configure(nodesin); 297 helements->configure(elementsin); 287 298 hmatpar->configure(materialsin); 288 299 … … 298 309 * datasets, using internal ids and offsets hidden in hooks: */ 299 310 hnodes->configure(nodesin); 311 helements->configure(elementsin); 300 312 hmatpar->configure(materialsin); 301 313
Note:
See TracChangeset
for help on using the changeset viewer.