- Timestamp:
- 02/13/12 15:50:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl-damage/src/c/solutions/transient_core.cpp
r11245 r11417 24 24 /*parameters: */ 25 25 double finaltime,dt,yts; 26 bool control_analysis,isdiagnostic,isprognostic,isthermal,isgroundingline ;26 bool control_analysis,isdiagnostic,isprognostic,isthermal,isgroundingline,isenthalpy; 27 27 bool dakota_analysis=false; 28 28 bool time_adapt=false; … … 51 51 femmodel->parameters->FindParam(&isthermal,TransientIsthermalEnum); 52 52 femmodel->parameters->FindParam(&isgroundingline,TransientIsgroundinglineEnum); 53 femmodel->parameters->FindParam(&isenthalpy,ThermalIsenthalpyEnum); 53 54 if(isgroundingline) femmodel->parameters->FindParam(&groundingline_migration,GroundinglineMigrationEnum); 54 55 femmodel->parameters->FindParam(&numoutputs,TransientNumRequestedOutputsEnum); … … 91 92 _printf_(VerboseSolution()," computing temperatures:\n"); 92 93 #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 } 94 100 #else 95 101 _error_("ISSM was not compiled with thermal capabilities. Exiting"); … … 135 141 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,BedEnum,step,time); 136 142 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); 138 146 InputToResultx(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,SurfaceforcingsMassBalanceEnum,step,time); 139 147 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.