Changeset 4691


Ignore:
Timestamp:
07/21/10 11:00:35 (15 years ago)
Author:
seroussi
Message:

linearisation of friction in Tria (same as old version)

File:
1 edited

Legend:

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

    r4651 r4691  
    46634663        double alpha2,vx,vy;
    46644664        double geothermalflux_value;
     4665        double    alpha2_list[numgrids];                                       //TO BE DELETED
     4666        double    gauss[numgrids][numgrids] = {{1,0,0},{0,1,0},{0,0,1}}; //TO BE DELETED
    46654667
    46664668        /* gaussian points: */
     
    47004702        if (drag_type!=2)ISSMERROR(" non-viscous friction not supported yet!");
    47014703        friction=new Friction("3d",inputs,matpar,analysis_type);
     4704
     4705        /*COMPUT alpha2_list (TO BE DELETED)*/
     4706        for(i=0;i<numgrids;i++){
     4707                friction->GetAlpha2(&alpha2_list[i],&gauss[i][0],VxEnum,VyEnum,VzEnum);
     4708        }
    47024709       
    47034710        /* Ice/ocean heat exchange flux on ice shelf base */
     
    47204727                inputs->GetParameterValue(&geothermalflux_value, &gauss_coord[0],GeothermalFluxEnum);
    47214728       
    4722                 friction->GetAlpha2(&alpha2,&gauss_coord[0],VxEnum,VyEnum,VzEnum);
     4729                /*Friction: */
     4730                //friction->GetAlpha2(&alpha2,&gauss_coord[0],VxEnum,VyEnum,VzEnum);
     4731                GetParameterValue(&alpha2,&alpha2_list[0],gauss_coord); // TO BE DELETED
     4732
    47234733                inputs->GetParameterValue(&vx, &gauss_coord[0],VxEnum);
    47244734                inputs->GetParameterValue(&vy, &gauss_coord[0],VyEnum);
     
    47344744                        P_terms[i]+=scalar*l1l2l3[i];
    47354745                }
     4746
    47364747        }
    47374748
Note: See TracChangeset for help on using the changeset viewer.