Ignore:
Timestamp:
02/02/15 14:45:51 (10 years ago)
Author:
Eric.Larour
Message:

CHG: added IceMass computation.

File:
1 edited

Legend:

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

    r19033 r19061  
    16221622                return false;
    16231623        }
     1624}
     1625/*}}}*/
     1626IssmDouble Tria::IceMass(void){/*{{{*/
     1627
     1628        IssmDouble rho_ice;
     1629       
     1630        if(!IsIceInElement())return 0.; //do not contribute to the volume of the ice!
     1631
     1632        /*recover ice density: */
     1633        rho_ice=matpar->GetMaterialParameter(MaterialsRhoIceEnum);
     1634
     1635        return rho_ice*this->IceVolume();
    16241636}
    16251637/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.