Changeset 14900


Ignore:
Timestamp:
05/04/13 23:04:19 (12 years ago)
Author:
adhikari
Message:

CHG: element and materials updated for varying mantle visocity

Location:
issm/trunk-jpl/src/c/classes/objects
Files:
3 edited

Legend:

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

    r14822 r14900  
    30973097        IssmDouble lithosphere_density;
    30983098        IssmDouble mantle_shear_modulus;
     3099        IssmDouble mantle_density;
     3100        Input* mantle_viscosity_input=NULL;
    30993101        IssmDouble mantle_viscosity;
    3100         IssmDouble mantle_density;
    31013102        Input* lithosphere_thickness_input=NULL;
    31023103        IssmDouble lithosphere_thickness;
     
    31303131        lithosphere_density=matpar->GetLithosphereDensity();
    31313132        mantle_shear_modulus=matpar->GetMantleShearModulus();
    3132         mantle_viscosity=matpar->GetMantleViscosity();
    31333133        mantle_density=matpar->GetMantleDensity();
    31343134        rho_ice=matpar->GetRhoIce();
     
    31383138        if (!thickness_input)_error_("thickness input needed to compute gia deflection!");
    31393139        thickness_input->GetInputUpToCurrentTimeAverages(&hes,&times,&numtimes,currenttime);
     3140
     3141        /*recover mantle viscosity: */
     3142        mantle_viscosity_input=inputs->GetInput(GiaMantleViscosityEnum);
     3143        if (!mantle_viscosity_input)_error_("mantle viscosity input needed to compute gia deflection!");
     3144        mantle_viscosity_input->GetInputAverage(&mantle_viscosity);
    31403145
    31413146        /*recover lithosphere thickness: */
  • issm/trunk-jpl/src/c/classes/objects/Materials/Matpar.cpp

    r14838 r14900  
    8181        iomodel->Constant(&this->lithosphere_density,MaterialsLithosphereDensityEnum);
    8282        iomodel->Constant(&this->mantle_shear_modulus,MaterialsMantleShearModulusEnum);
    83         iomodel->Constant(&this->mantle_viscosity,MaterialsMantleViscosityEnum);
    8483        iomodel->Constant(&this->mantle_density,MaterialsMantleDensityEnum);
    8584
     
    458457}               
    459458/*}}}*/
    460 /*FUNCTION Matpar::GetMantleViscosity {{{*/                     
    461 IssmDouble Matpar::GetMantleViscosity(){                 
    462         return mantle_viscosity;                         
    463 }               
    464 /*}}}*/
    465459/*FUNCTION Matpar::UnitConversion {{{*/                 
    466460void Matpar::UnitConversion(void){               
  • issm/trunk-jpl/src/c/classes/objects/Materials/Matpar.h

    r14822 r14900  
    5555                IssmDouble lithosphere_density;
    5656                IssmDouble mantle_shear_modulus;
    57                 IssmDouble mantle_viscosity;
    5857                IssmDouble mantle_density;
    5958
     
    131130                IssmDouble GetLithosphereDensity();
    132131                IssmDouble GetMantleShearModulus();
    133                 IssmDouble GetMantleViscosity();
    134132                IssmDouble GetMantleDensity();
    135133                void   EnthalpyToThermal(IssmDouble* ptemperature,IssmDouble* pwaterfraction,IssmDouble enthalpy,IssmDouble pressure);
Note: See TracChangeset for help on using the changeset viewer.