Changeset 111 for issm/trunk/src/c/objects/Penta.cpp
- Timestamp:
- 04/28/09 15:48:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Penta.cpp
r92 r111 22 22 double penta_p, double penta_q, int penta_shelf, int penta_onbed, int penta_onsurface, double penta_meanvel,double penta_epsvel, 23 23 int penta_collapse, double penta_melting[6], double penta_accumulation[6], double penta_geothermalflux[6], 24 int penta_artdiff, int penta_thermal_steadystate ){24 int penta_artdiff, int penta_thermal_steadystate,double penta_viscosity_overshoot){ 25 25 26 26 int i; … … 58 58 artdiff = penta_artdiff; 59 59 thermal_steadystate = penta_thermal_steadystate; 60 viscosity_overshoot = penta_viscosity_overshoot; 60 61 61 62 return; … … 97 98 printf(" artdiff: %i\n",artdiff); 98 99 printf(" thermal_steadystate: %i\n",thermal_steadystate); 100 printf(" viscosity_overshoot: %i\n",viscosity_overshoot); 99 101 return; 100 102 } … … 143 145 memcpy(marshalled_dataset,&artdiff,sizeof(artdiff));marshalled_dataset+=sizeof(artdiff); 144 146 memcpy(marshalled_dataset,&thermal_steadystate,sizeof(thermal_steadystate));marshalled_dataset+=sizeof(thermal_steadystate); 147 memcpy(marshalled_dataset,&viscosity_overshoot,sizeof(viscosity_overshoot));marshalled_dataset+=sizeof(viscosity_overshoot); 145 148 146 149 *pmarshalled_dataset=marshalled_dataset; … … 178 181 sizeof(artdiff)+ 179 182 sizeof(thermal_steadystate) + 183 sizeof(viscosity_overshoot) + 180 184 sizeof(int); //sizeof(int) for enum type 181 185 } … … 224 228 memcpy(&artdiff,marshalled_dataset,sizeof(artdiff));marshalled_dataset+=sizeof(artdiff); 225 229 memcpy(&thermal_steadystate,marshalled_dataset,sizeof(thermal_steadystate));marshalled_dataset+=sizeof(thermal_steadystate); 230 memcpy(&viscosity_overshoot,marshalled_dataset,sizeof(viscosity_overshoot));marshalled_dataset+=sizeof(viscosity_overshoot); 226 231 227 232 /*nodes and materials are not pointing to correct objects anymore:*/ … … 770 775 tria_node_offsets[2]=node_offsets[g2]; 771 776 772 tria= new Tria(id,mid,mparid,tria_node_ids,tria_h,tria_s,tria_b,tria_k, friction_type,p,q,shelf,meanvel,epsvel );777 tria= new Tria(id,mid,mparid,tria_node_ids,tria_h,tria_s,tria_b,tria_k, friction_type,p,q,shelf,meanvel,epsvel,viscosity_overshoot); 773 778 774 779 tria->NodeConfiguration(tria_node_ids,tria_nodes,tria_node_offsets);
Note:
See TracChangeset
for help on using the changeset viewer.