Changeset 5723
- Timestamp:
- 09/09/10 14:21:10 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Elements/Penta.cpp
r5722 r5723 567 567 /* Start looping on the number of gaussian points: */ 568 568 gauss=new GaussPenta(0,1,2,2); 569 for (ig= 0; ig<num_gauss;ig++){569 for (ig=gauss->begin();ig<gauss->end();ig++){ 570 570 571 571 gauss->GaussPoint(ig); … … 574 574 this->GetStrainRate3d(&epsilon[0],&xyz_list[0][0],gauss,vx_input,vy_input,vz_input); 575 575 matice->GetViscosity3dStokes(&viscosity,&epsilon[0]); 576 pressure_input->GetParameterValue(&pressure, &gauss_coord[0]);576 pressure_input->GetParameterValue(&pressure,gauss); 577 577 578 578 /*Compute Stress*/ … … 592 592 basalforce[2] += sigma_xz*bed_normal[0] + sigma_yz*bed_normal[1] + sigma_zz*bed_normal[2]; 593 593 594 /*Get the Jacobian determinant */595 594 GetTriaJacobianDeterminant(&Jdet2d, &xyz_list_tria[0][0],gauss); 596 value+=sigma_zz*Jdet2d*gauss _weight;597 surface+=Jdet2d*gauss _weight;595 value+=sigma_zz*Jdet2d*gauss->weight; 596 surface+=Jdet2d*gauss->weight; 598 597 } 599 598 value=value/surface; … … 3826 3825 3827 3826 /* Start looping on the number of gauss 2d (nodes on the bedrock) */ 3828 gauss=new GaussPenta(0,1,2,2) 3829 for 3827 gauss=new GaussPenta(0,1,2,2); 3828 for(ig=gauss->begin();ig<gauss->end();ig++){ 3830 3829 3831 3830 gauss->GaussPoint(ig);
Note:
See TracChangeset
for help on using the changeset viewer.