Changeset 21160


Ignore:
Timestamp:
08/24/16 16:14:51 (9 years ago)
Author:
jbondzio
Message:

BUG: update enthalpy basal BCs before run: newly activated, grounded elements at ice front might cause inconsistencies in basal BCs otherwise

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp

    r20690 r21160  
    460460}/*}}}*/
    461461void           EnthalpyAnalysis::Core(FemModel* femmodel){/*{{{*/
     462
     463        IssmDouble dt;
     464        bool isdynamicbasalspc;
     465
     466        femmodel->parameters->FindParam(&dt,TimesteppingTimeStepEnum);
     467        femmodel->parameters->FindParam(&isdynamicbasalspc,ThermalIsdynamicbasalspcEnum);
     468
    462469        if(VerboseSolution()) _printf0_("   computing enthalpy\n");
    463470        femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum);
     471        if((dt>0.) && isdynamicbasalspc)        UpdateBasalConstraints(femmodel);
    464472        solutionsequence_thermal_nonlinear(femmodel);
    465473
     
    467475        InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum);
    468476
    469         IssmDouble dt;
    470         femmodel->parameters->FindParam(&dt,TimesteppingTimeStepEnum);
    471477        if(dt==0.) ComputeBasalMeltingrate(femmodel);
    472478        else PostProcessing(femmodel);
     
    15351541        bool computebasalmeltingrates=true;
    15361542        bool drainicecolumn=true;
    1537         bool isdynamicbasalspc;
    15381543        IssmDouble dt;
    15391544
    1540         femmodel->parameters->FindParam(&isdynamicbasalspc,ThermalIsdynamicbasalspcEnum);
    15411545        femmodel->parameters->FindParam(&dt,TimesteppingTimeStepEnum);
    15421546
    1543         //TODO: use dt to decide what to do
    15441547        if(drainicecolumn)      DrainWaterfraction(femmodel);
    15451548        if(computebasalmeltingrates)    ComputeBasalMeltingrate(femmodel);
    1546         if(isdynamicbasalspc)   UpdateBasalConstraints(femmodel);
    15471549
    15481550}/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.