Changeset 26434


Ignore:
Timestamp:
09/08/21 06:39:02 (4 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing levelset SUPG

File:
1 edited

Legend:

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

    r26423 r26434  
    321321                        case 5:{
    322322                                /*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;
    326327                                IssmPDouble xi=1.;
    327328                                IssmDouble  tau=xi*h/(2*vel);
    328329
    329                                 IssmDouble vx,vy;
    330                                 vx = w[0]; vy = w[1];
    331330                                /*Mass matrix - part 2*/
    332331                                for(int i=0;i<numnodes;i++){
     
    371370        /*Fetch number of nodes and dof for this finite element*/
    372371        int numnodes = basalelement->GetNumberOfNodes();
    373         basalelement->FindParam(&stabilization,MasstransportStabilizationEnum);
     372        basalelement->FindParam(&stabilization,LevelsetStabilizationEnum);
    374373
    375374        /*Initialize Element vector*/
     
    406405                        mf_vy_input->GetInputAverage(&vy);
    407406                        vel=sqrt(vx*vx+vy*vy)+1.e-8;
    408                         IssmPDouble xi=1;
     407                        IssmPDouble xi=1.;
    409408                        IssmDouble  tau=xi*h/(2*vel);
    410409
Note: See TracChangeset for help on using the changeset viewer.