Changeset 3399
- Timestamp:
- 04/05/10 14:44:05 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Hook.cpp
r3396 r3399 311 311 /*go pickup the correct objects, ids and offsets :*/ 312 312 subnum=numindices; 313 if(subnum<1) ISSMERROR("Trying to spawn an empty ElementProperties!"); 313 314 314 315 subobjects=(Object**)xmalloc(subnum*sizeof(Object*)); … … 316 317 suboffsets=(int*)xmalloc(subnum*sizeof(int)); 317 318 318 if(subnum){ 319 for(i=0;i<subnum;i++){ 320 subobjects[i]=this->objects[indices[i]]; 321 subids[i]=this->ids[indices[i]]; 322 suboffsets[i]=this->offsets[indices[i]]; 323 } 324 } 325 else ISSMERROR("Trying to spawn an empty ElementProperties!"); 319 for(i=0;i<subnum;i++){ 320 subobjects[i]=this->objects[indices[i]]; 321 subids[i]=this->ids[indices[i]]; 322 suboffsets[i]=this->offsets[indices[i]]; 323 } 326 324 327 325 return new Hook(subobjects,subids,suboffsets,subnum); -
issm/trunk/src/c/objects/Tria.cpp
r3389 r3399 233 233 //if (id==1) printf("WARNING if QMU: no hydrostatic equilibrium is applied here (conflict with prognostic, which does not have matpar)\n"); 234 234 //For now 235 i nputs->Recover("thickness",&this->properties.h[0],1,dofs,3,(void**)nodes);235 if(this->properties.h) inputs->Recover("thickness",&this->properties.h[0],1,dofs,3,(void**)nodes); 236 236 //Later 237 237 /* … … 249 249 } 250 250 */ 251 i nputs->Recover("surface",&this->properties.s[0],1,dofs,3,(void**)nodes);252 i nputs->Recover("bed",&this->properties.b[0],1,dofs,3,(void**)nodes);253 i nputs->Recover("drag",&this->properties.k[0],1,dofs,3,(void**)nodes);254 i nputs->Recover("melting",&this->properties.melting[0],1,dofs,3,(void**)nodes);255 i nputs->Recover("accumulation",&this->properties.accumulation[0],1,dofs,3,(void**)nodes);256 i nputs->Recover("geothermalflux",&this->properties.geothermalflux[0],1,dofs,3,(void**)nodes);251 if (this->properties.s) inputs->Recover("surface",&this->properties.s[0],1,dofs,3,(void**)nodes); 252 if (this->properties.b) inputs->Recover("bed",&this->properties.b[0],1,dofs,3,(void**)nodes); 253 if (this->properties.k) inputs->Recover("drag",&this->properties.k[0],1,dofs,3,(void**)nodes); 254 if (this->properties.melting) inputs->Recover("melting",&this->properties.melting[0],1,dofs,3,(void**)nodes); 255 if (this->properties.accumulation) inputs->Recover("accumulation",&this->properties.accumulation[0],1,dofs,3,(void**)nodes); 256 if (this->properties.geothermalflux) inputs->Recover("geothermalflux",&this->properties.geothermalflux[0],1,dofs,3,(void**)nodes); 257 257 258 258 //Update material if necessary
Note:
See TracChangeset
for help on using the changeset viewer.