Ignore:
Timestamp:
02/13/12 15:50:19 (13 years ago)
Author:
cborstad
Message:

merged src changes 11330:11410 from trunk-jpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl-damage/src/c/solutions/transient_core.cpp

    r11245 r11417  
    2424        /*parameters: */
    2525        double finaltime,dt,yts;
    26         bool   control_analysis,isdiagnostic,isprognostic,isthermal,isgroundingline;
     26        bool   control_analysis,isdiagnostic,isprognostic,isthermal,isgroundingline,isenthalpy;
    2727        bool   dakota_analysis=false;
    2828        bool   time_adapt=false;
     
    5151        femmodel->parameters->FindParam(&isthermal,TransientIsthermalEnum);
    5252        femmodel->parameters->FindParam(&isgroundingline,TransientIsgroundinglineEnum);
     53        femmodel->parameters->FindParam(&isenthalpy,ThermalIsenthalpyEnum);
    5354        if(isgroundingline) femmodel->parameters->FindParam(&groundingline_migration,GroundinglineMigrationEnum);
    5455        femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum);
     
    9192                        _printf_(VerboseSolution(),"   computing temperatures:\n");
    9293                        #ifdef _HAVE_THERMAL_
    93                         thermal_core_step(femmodel,step,time);
     94                        if(isenthalpy==0){
     95                                thermal_core_step(femmodel,step,time);
     96                        }
     97                        else{
     98                                enthalpy_core_step(femmodel,step,time);
     99                        }
    94100                        #else
    95101                        _error_("ISSM was not compiled with thermal capabilities. Exiting");
     
    135141                        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,BedEnum,step,time);
    136142                        if(dim==3 && isthermal) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,TemperatureEnum,step,time);
    137                         InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,BasalforcingsMeltingRateEnum,step,time);
     143                        if(isenthalpy) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,WaterfractionEnum,step,time);
     144                        if(isenthalpy) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,EnthalpyEnum,step,time);
     145                        if(!isenthalpy) InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,BasalforcingsMeltingRateEnum,step,time);
    138146                        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,SurfaceforcingsMassBalanceEnum,step,time);
    139147                        InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,MaskElementonfloatingiceEnum,step,time);
Note: See TracChangeset for help on using the changeset viewer.