Changeset 11830
- Timestamp:
- 03/30/12 16:26:33 (13 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 4 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r11808 r11830 394 394 395 395 thermal_psources = ./solutions/thermal_core.cpp\ 396 ./solutions/thermal_core_step.cpp\397 396 ./solutions/enthalpy_core.cpp\ 398 ./solutions/enthalpy_core_step.cpp\399 397 ./solvers/solver_thermal_nonlinear.cpp 400 398 #}}} -
issm/trunk-jpl/src/c/solutions/enthalpy_core.cpp
r11827 r11830 17 17 /*intermediary*/ 18 18 bool save_results; 19 int solution_type;20 19 21 20 //first recover parameters common to all solutions 22 21 femmodel->parameters->FindParam(&save_results,SaveResultsEnum); 23 femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);24 22 25 /*call enthalpy_core_step: */ 26 enthalpy_core_step(femmodel); 23 _printf_(VerboseSolution()," computing enthalpy\n"); 24 femmodel->SetCurrentConfiguration(EnthalpyAnalysisEnum); 25 solver_nonlinear(femmodel,true); 26 27 /*transfer enthalpy to enthalpy picard for the next step: */ 28 InputDuplicatex(femmodel->elements,femmodel->nodes,femmodel->vertices,femmodel->loads,femmodel->materials,femmodel->parameters,EnthalpyEnum,EnthalpyPicardEnum); 27 29 28 30 if(save_results){ -
issm/trunk-jpl/src/c/solutions/solutions.h
r11823 r11830 20 20 void hydrology_core_step(FemModel* femmodel,int step, double time); 21 21 void thermal_core(FemModel* femmodel); 22 void thermal_core_step(FemModel* femmodel,int step=0, double time=0);23 22 void enthalpy_core(FemModel* femmodel); 24 void enthalpy_core_step(FemModel* femmodel,int step=0, double time=0);25 23 void surfaceslope_core(FemModel* femmodel); 26 24 void bedslope_core(FemModel* femmodel); -
issm/trunk-jpl/src/c/solutions/thermal_core.cpp
r11829 r11830 18 18 double melting_offset; 19 19 bool save_results; 20 int solution_type;21 20 bool dakota_analysis = false; 22 21 … … 30 29 } 31 30 32 /*call thermal_core_step: */ 33 thermal_core_step(femmodel); 31 _printf_(VerboseSolution()," computing temperatures\n"); 32 femmodel->SetCurrentConfiguration(ThermalAnalysisEnum); 33 solver_thermal_nonlinear(femmodel); 34 35 _printf_(VerboseSolution()," computing melting\n"); 36 femmodel->SetCurrentConfiguration(MeltingAnalysisEnum); 37 solver_linear(femmodel); 34 38 35 39 if(save_results){ -
issm/trunk-jpl/src/c/solutions/transient_core.cpp
r11827 r11830 96 96 97 97 if(isthermal && dim==3){ 98 _printf_(VerboseSolution()," computing temperatures :\n");98 _printf_(VerboseSolution()," computing temperatures\n"); 99 99 #ifdef _HAVE_THERMAL_ 100 100 if(isenthalpy==0){ 101 thermal_core _step(femmodel,step,time);101 thermal_core(femmodel); 102 102 } 103 103 else{ 104 enthalpy_core _step(femmodel,step,time);104 enthalpy_core(femmodel); 105 105 } 106 106 #else -
issm/trunk-jpl/src/m/model/plot/plot_section.m
r10987 r11830 111 111 112 112 %plot section value 113 hold on; 114 subplot(nlines,ncols,index1) 115 %subplot(1,3,[2 3]) 113 if(i==1), subplot(nlines,ncols,index1); end 116 114 plot(s,data_s,'color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1)) 115 hold on 117 116 118 117 -
issm/trunk-jpl/src/m/solutions/enthalpy_core.m
r11827 r11830 10 10 11 11 issmprintf(VerboseSolution,'\n%s',[' computing enthalpy']); 12 femmodel=enthalpy_core_step(femmodel); 12 femmodel=SetCurrentConfiguration(femmodel,EnthalpyAnalysisEnum); 13 femmodel=solver_nonlinear(femmodel,true); 13 14 14 15 if (save_results), -
issm/trunk-jpl/src/m/solutions/thermal_core.m
r11827 r11830 11 11 12 12 issmprintf(VerboseSolution,'\n%s',[' computing temperature']); 13 femmodel=thermal_core_step(femmodel); 13 femmodel=SetCurrentConfiguration(femmodel,ThermalAnalysisEnum); 14 femmodel=solver_thermal_nonlinear(femmodel); 15 16 issmprintf(VerboseSolution,'\n%s',[' computing melting']); 17 femmodel=SetCurrentConfiguration(femmodel,MeltingAnalysisEnum); 18 femmodel=solver_linear(femmodel); 14 19 15 20 if (save_results), -
issm/trunk-jpl/src/m/solutions/transient_core.m
r11827 r11830 66 66 issmprintf(VerboseSolution,'\n%s',[' computing temperature']); 67 67 if (isenthalpy==0), 68 femmodel=thermal_core _step(femmodel);68 femmodel=thermal_core(femmodel); 69 69 else 70 femmodel=enthalpy_core _step(femmodel);70 femmodel=enthalpy_core(femmodel); 71 71 end 72 72 end
Note:
See TracChangeset
for help on using the changeset viewer.