Changeset 26434
- Timestamp:
- 09/08/21 06:39:02 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/LevelsetAnalysis.cpp
r26423 r26434 321 321 case 5:{ 322 322 /*SUPG*/ 323 mf_vx_input->GetInputAverage(&w[0]); 324 mf_vy_input->GetInputAverage(&w[1]); 325 vel=sqrt(w[0]*w[0]+w[1]*w[1])+1.e-8; 323 IssmDouble vx,vy; 324 mf_vx_input->GetInputAverage(&vx); 325 mf_vy_input->GetInputAverage(&vy); 326 vel=sqrt(vx*vx+vy*vy)+1.e-8; 326 327 IssmPDouble xi=1.; 327 328 IssmDouble tau=xi*h/(2*vel); 328 329 329 IssmDouble vx,vy;330 vx = w[0]; vy = w[1];331 330 /*Mass matrix - part 2*/ 332 331 for(int i=0;i<numnodes;i++){ … … 371 370 /*Fetch number of nodes and dof for this finite element*/ 372 371 int numnodes = basalelement->GetNumberOfNodes(); 373 basalelement->FindParam(&stabilization, MasstransportStabilizationEnum);372 basalelement->FindParam(&stabilization,LevelsetStabilizationEnum); 374 373 375 374 /*Initialize Element vector*/ … … 406 405 mf_vy_input->GetInputAverage(&vy); 407 406 vel=sqrt(vx*vx+vy*vy)+1.e-8; 408 IssmPDouble xi=1 ;407 IssmPDouble xi=1.; 409 408 IssmDouble tau=xi*h/(2*vel); 410 409
Note:
See TracChangeset
for help on using the changeset viewer.