Changeset 26911


Ignore:
Timestamp:
03/01/22 13:08:53 (3 years ago)
Author:
vverjans
Message:

CHG: remove contributions of grounded points in calculation of melting flux output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r26878 r26911  
    55005500        /*Get inputs*/
    55015501        IssmDouble flux = 0.;
    5502         IssmDouble calvingratex,calvingratey,vx,vy,vel,meltingrate,meltingratex,meltingratey,thickness,Jdet;
     5502        IssmDouble calvingratex,calvingratey,vx,vy,vel,meltingrate,meltingratex,meltingratey,thickness,Jdet,groundedice;
    55035503        IssmDouble rho_ice=FindParam(MaterialsRhoIceEnum);
    5504         Input* thickness_input=this->GetInput(ThicknessEnum); _assert_(thickness_input);
     5504        Input* thickness_input = this->GetInput(ThicknessEnum); _assert_(thickness_input);
     5505        Input *gr_input        = this->GetInput(MaskOceanLevelsetEnum); _assert_(gr_input);
    55055506        Input* calvingratex_input=NULL;
    55065507        Input* calvingratey_input=NULL;
     
    55265527                calvingratex_input->GetInputValue(&calvingratex,gauss);
    55275528                calvingratey_input->GetInputValue(&calvingratey,gauss);
     5529                gr_input->GetInputValue(&groundedice,gauss);
    55285530                vx_input->GetInputValue(&vx,gauss);
    55295531                vy_input->GetInputValue(&vy,gauss);
    55305532                vel=vx*vx+vy*vy;
    55315533                meltingrate_input->GetInputValue(&meltingrate,gauss);
     5534                if(groundedice<0) meltingrate = 0.;
    55325535                meltingratex=meltingrate*vx/(sqrt(vel)+1.e-14);
    55335536                meltingratey=meltingrate*vy/(sqrt(vel)+1.e-14);
Note: See TracChangeset for help on using the changeset viewer.