Changeset 24221
- Timestamp:
- 10/14/19 20:01:32 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/StressbalanceAnalysis.cpp
r24145 r24221 5107 5107 } 5108 5108 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 5109 5117 /*Add value to global vector*/ 5110 5118 solution->SetValues(vnumdof,vdoflist,vvalues,INS_VAL); … … 5265 5273 5266 5274 /*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); 5270 5281 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); 5272 5283 5273 5284 /*Free ressources:*/
Note:
See TracChangeset
for help on using the changeset viewer.