Changeset 5723


Ignore:
Timestamp:
09/09/10 14:21:10 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Penta.cpp

    r5722 r5723  
    567567        /* Start  looping on the number of gaussian points: */
    568568        gauss=new GaussPenta(0,1,2,2);
    569         for (ig=0; ig<num_gauss; ig++){
     569        for (ig=gauss->begin();ig<gauss->end();ig++){
    570570
    571571                gauss->GaussPoint(ig);
     
    574574                this->GetStrainRate3d(&epsilon[0],&xyz_list[0][0],gauss,vx_input,vy_input,vz_input);
    575575                matice->GetViscosity3dStokes(&viscosity,&epsilon[0]);
    576                 pressure_input->GetParameterValue(&pressure, &gauss_coord[0]);
     576                pressure_input->GetParameterValue(&pressure,gauss);
    577577
    578578                /*Compute Stress*/
     
    592592                basalforce[2] += sigma_xz*bed_normal[0] + sigma_yz*bed_normal[1] + sigma_zz*bed_normal[2];
    593593
    594                 /*Get the Jacobian determinant */
    595594                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;
    598597        }
    599598        value=value/surface;
     
    38263825
    38273826                /* Start looping on the number of gauss 2d (nodes on the bedrock) */
    3828                 gauss=new GaussPenta(0,1,2,2)
    3829                 for (ig=gauss->begin();ig<gauss->end();ig++){
     3827                gauss=new GaussPenta(0,1,2,2);
     3828                for(ig=gauss->begin();ig<gauss->end();ig++){
    38303829
    38313830                        gauss->GaussPoint(ig);
Note: See TracChangeset for help on using the changeset viewer.