Changeset 21160
- Timestamp:
- 08/24/16 16:14:51 (9 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/EnthalpyAnalysis.cpp
r20690 r21160 460 460 }/*}}}*/ 461 461 void 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 462 469 if(VerboseSolution()) _printf0_(" computing enthalpy\n"); 463 470 femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum); 471 if((dt>0.) && isdynamicbasalspc) UpdateBasalConstraints(femmodel); 464 472 solutionsequence_thermal_nonlinear(femmodel); 465 473 … … 467 475 InputDuplicatex(femmodel,EnthalpyEnum,EnthalpyPicardEnum); 468 476 469 IssmDouble dt;470 femmodel->parameters->FindParam(&dt,TimesteppingTimeStepEnum);471 477 if(dt==0.) ComputeBasalMeltingrate(femmodel); 472 478 else PostProcessing(femmodel); … … 1535 1541 bool computebasalmeltingrates=true; 1536 1542 bool drainicecolumn=true; 1537 bool isdynamicbasalspc;1538 1543 IssmDouble dt; 1539 1544 1540 femmodel->parameters->FindParam(&isdynamicbasalspc,ThermalIsdynamicbasalspcEnum);1541 1545 femmodel->parameters->FindParam(&dt,TimesteppingTimeStepEnum); 1542 1546 1543 //TODO: use dt to decide what to do1544 1547 if(drainicecolumn) DrainWaterfraction(femmodel); 1545 1548 if(computebasalmeltingrates) ComputeBasalMeltingrate(femmodel); 1546 if(isdynamicbasalspc) UpdateBasalConstraints(femmodel);1547 1549 1548 1550 }/*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.