Changeset 15556
- Timestamp:
- 07/23/13 11:32:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r15544 r15556 8216 8216 IssmDouble zmax=xyz_list[0][2]; for(int i=1;i<6;i++) if(xyz_list[i][2]>zmax) zmax=xyz_list[i][2]; 8217 8217 IssmDouble zmin=xyz_list[0][2]; for(int i=1;i<6;i++) if(xyz_list[i][2]<zmin) zmin=xyz_list[i][2]; 8218 if(zmax>0 && zmin<0) gauss=new GaussPenta(area_coordinates,3, 10); //refined in vertical because of the sea level discontinuity8218 if(zmax>0 && zmin<0) gauss=new GaussPenta(area_coordinates,3,30); //refined in vertical because of the sea level discontinuity 8219 8219 else gauss=new GaussPenta(area_coordinates,3,3); 8220 8220 … … 8234 8234 pe->values[4*i+1]+= pressure*Jdet*gauss->weight*normal[1]*basis[i]; 8235 8235 pe->values[4*i+2]+= pressure*Jdet*gauss->weight*normal[2]*basis[i]; 8236 pe->values[4*i+3]+= 0; 8236 8237 } 8237 8238 } … … 8239 8240 /*Transform coordinate system*/ 8240 8241 TransformLoadVectorCoord(pe,nodes,numnodes,XYZPEnum); 8241 8242 8242 8243 8243 /*Clean up and return*/
Note:
See TracChangeset
for help on using the changeset viewer.