Changeset 24221


Ignore:
Timestamp:
10/14/19 20:01:32 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: bubble should not be calculated with GetInputValue, it's better to just say it's 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp

    r24145 r24221  
    51075107        }
    51085108
     5109        /*Do NOT account for bubble using GetInputValue! This is wrong*/
     5110        if(element->VelocityInterpolation()==P1bubblecondensedEnum ||
     5111                                element->VelocityInterpolation()==P1bubbleEnum){
     5112                vvalues[(vnumnodes-1)*dim+0]=0.;
     5113                vvalues[(vnumnodes-1)*dim+1]=0.;
     5114                if(dim==3) vvalues[(vnumnodes-1)*dim+2]=0.;
     5115        }
     5116
    51095117        /*Add value to global vector*/
    51105118        solution->SetValues(vnumdof,vdoflist,vvalues,INS_VAL);
     
    52655273
    52665274        /*Add vx and vy as inputs to the tria element: */
    5267         element->AddInput(VxEnum, vx, element->VelocityInterpolation());
    5268         element->AddInput(VyEnum, vy, element->VelocityInterpolation());
    5269         element->AddInput(VelEnum,vel,element->VelocityInterpolation());
     5275        int fe_v = element->VelocityInterpolation();
     5276        //if(fe_v == P1bubblecondensedEnum) fe_v = P1Enum;
     5277        //if(fe_v == P1bubbleEnum) fe_v = P1Enum;
     5278        element->AddInput(VxEnum, vx, fe_v);
     5279        element->AddInput(VyEnum, vy, fe_v);
     5280        element->AddInput(VelEnum,vel,fe_v);
    52705281        if(pnumdof>0) element->AddInput(PressureEnum,pressure,element->PressureInterpolation());
    5271         if(dim==3) element->AddInput(VzEnum,vz, element->VelocityInterpolation());
     5282        if(dim==3) element->AddInput(VzEnum,vz, fe_v);
    52725283
    52735284        /*Free ressources:*/
Note: See TracChangeset for help on using the changeset viewer.