Changeset 14810


Ignore:
Timestamp:
04/30/13 12:23:10 (12 years ago)
Author:
Eric.Larour
Message:

CHG: got rid of current_he, added passing yts constant.
Also, now provides to GiaDeflectionCore the load history up to and including current time.

File:
1 edited

Legend:

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

    r14807 r14810  
    30833083
    30843084        /*thickness averages: */
    3085         IssmDouble current_he=NULL;
    30863085        IssmDouble* hes=NULL;
    30873086        IssmDouble* times=NULL;
     
    31063105        IssmDouble rho_ice;
    31073106
     3107        /*constants: */
     3108        IssmDouble yts;
     3109
    31083110        /*output: */
    31093111        IssmDouble  wi;
     
    31153117        /*how many dofs are we working with here? */
    31163118        this->parameters->FindParam(&gsize,MeshNumberofverticesEnum);
     3119        this->parameters->FindParam(&yts,ConstantsYtsEnum);
    31173120
    31183121        /*recover gia solution parameters: */
     
    31343137        thickness_input=inputs->GetInput(ThicknessEnum);
    31353138        if (!thickness_input)_error_("thickness input needed to compute gia deflection!");
    3136         thickness_input->GetInputAllTimeAverages(&hes,&times,&numtimes);
    3137         thickness_input->GetInputAverage(&current_he);
    3138 
     3139        thickness_input->GetInputUpToCurrentTimeAverages(&hes,&times,&numtimes,currenttime);
     3140       
    31393141        /*recover lithosphere thickness: */
    31403142        lithosphere_thickness_input=inputs->GetInput(GiaLithosphereThicknessEnum);
     
    31553157        /*start loading GiaDeflectionCore arguments: */
    31563158        arguments.re=re;
    3157         arguments.current_he=current_he;
    31583159        arguments.hes=hes;
    31593160        arguments.times=times;
     
    31703171        arguments.irate=output_rates;
    31713172        arguments.iedge=cross_section_shape;
     3173        arguments.yts=yts;
    31723174
    31733175        for(i=0;i<gsize;i++){
Note: See TracChangeset for help on using the changeset viewer.