Changeset 20093


Ignore:
Timestamp:
02/08/16 15:15:15 (9 years ago)
Author:
jbondzio
Message:

CHG: compute in steadystate_core 1.velocity 2.temperature, since temperature is highly sensitive to velocity. This bugfix also makes steadystate basal BCs for enthalpy work.

Location:
issm/trunk-jpl
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/steadystate_core.cpp

    r17924 r20093  
    4848        for(;;){
    4949
    50                 if(VerboseSolution()) _printf0_("   computing temperature and velocity for step: " << step << "\n");
    51                 thermal_core(femmodel);
    52                 if(!isenthalpy)femmodel->SetCurrentConfiguration(ThermalAnalysisEnum);/*Could be MeltingAnalysis...*/
    53                 GetSolutionFromInputsx(&tg,femmodel);
     50                /* Compute first velocity, then temperature due to high sensitivity of temperature to velocity. */
     51                if(VerboseSolution()) _printf0_("   computing velocity and temperature for step: " << step << "\n");
    5452
    5553                if(VerboseSolution()) _printf0_("   computing new velocity\n");
    5654                stressbalance_core(femmodel);
    5755                GetSolutionFromInputsx(&ug,femmodel);
     56
     57                thermal_core(femmodel);
     58                if(!isenthalpy)femmodel->SetCurrentConfiguration(ThermalAnalysisEnum);/*Could be MeltingAnalysis...*/
     59                GetSolutionFromInputsx(&tg,femmodel);
    5860
    5961                if(step>1){
Note: See TracChangeset for help on using the changeset viewer.