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

CHG: element and materials updated for varying mantle visocity

File:
1 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: */
Note: See TracChangeset for help on using the changeset viewer.