Changeset 25287


Ignore:
Timestamp:
07/17/20 13:42:53 (5 years ago)
Author:
Eric.Larour
Message:

CHG: missing bottom pressure in geodetic routine.

File:
1 edited

Legend:

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

    r25267 r25287  
    59455945        /*diverse:*/
    59465946        int gsize;
    5947         IssmDouble I, S;                //change in relative ice thickness and sea level
     5947        IssmDouble I, S, BP;            //change in relative ice thickness and sea level
    59485948        IssmDouble rho_ice,rho_water;
    59495949        int horiz;
     
    59875987                /*convert to kg/m^2:*/
    59885988                S=rho_water*S;
     5989               
     5990                /*If bottom pressures are available, retrieve them to load the bedrock:*/
     5991                if(bp_compute_fingerprints){
     5992                        Input2* bottompressure_change_input=this->GetInput2(DslSeaWaterPressureChangeAtSeaFloor);
     5993                        if (!bottompressure_change_input)_error_("bottom pressure input needed to compute sea level rise fingerprint!");
     5994                        bottompressure_change_input->GetInputAverage(&BP);
     5995
     5996                        /*convert from m to kg/m^2:*/
     5997                        BP=BP*rho_water;
     5998
     5999                        S+=BP;
     6000                }
    59896001
    59906002                for(int i=0;i<gsize;i++){
Note: See TracChangeset for help on using the changeset viewer.