Changeset 4926


Ignore:
Timestamp:
08/02/10 13:22:55 (15 years ago)
Author:
seroussi
Message:

hutter penta now working

File:
1 edited

Legend:

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

    r4925 r4926  
    33773377        double   ub,vb;
    33783378        double   surface,thickness;
    3379         double   slopex,slopey;
    33803379
    33813380        /*flags: */
     
    34283427        /*Loop on the three segments*/
    34293428        for(i=0;i<3;i++){
    3430                 slopex_input->GetParameterValue(&slopex, &gauss[i][0]);
    3431                 slopey_input->GetParameterValue(&slopey, &gauss[i][0]);
     3429                slopex_input->GetParameterValue(&slope[0], &gauss[i][0]);
     3430                slopey_input->GetParameterValue(&slope[1], &gauss[i][0]);
    34323431                surface_input->GetParameterValue(&surface, &gauss[i][0]);
    34333432                thickness_input->GetParameterValue(&thickness, &gauss[i][0]);
    34343433
    34353434                //compute slope2 slopex and slopey
    3436                 slope2=pow(slopex,2)+pow(slopey,2);
     3435                slope2=pow(slope[0],2)+pow(slope[1],2);
    34373436
    34383437                //%compute constant_part
     
    34773476                        //compute ub
    34783477                        constant_part=-1.58*pow((double)10.0,-(double)10.0)*rho_ice*gravity*thickness;
    3479                         ub=constant_part*slopex;
    3480                         vb=constant_part*slopey;
     3478                        ub=constant_part*slope[0];
     3479                        vb=constant_part*slope[1];
    34813480
    34823481                        //Add to pe:
Note: See TracChangeset for help on using the changeset viewer.