Changeset 11830


Ignore:
Timestamp:
03/30/12 16:26:33 (13 years ago)
Author:
Mathieu Morlighem
Message:

Getting rid of thermal_core_step and enthalpy_core_step: they are not needed anymore and made it difficult to coherently save results

Location:
issm/trunk-jpl/src
Files:
4 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r11808 r11830  
    394394
    395395thermal_psources = ./solutions/thermal_core.cpp\
    396                                             ./solutions/thermal_core_step.cpp\
    397396                                            ./solutions/enthalpy_core.cpp\
    398                                             ./solutions/enthalpy_core_step.cpp\
    399397                                            ./solvers/solver_thermal_nonlinear.cpp
    400398#}}}
  • issm/trunk-jpl/src/c/solutions/enthalpy_core.cpp

    r11827 r11830  
    1717        /*intermediary*/
    1818        bool   save_results;
    19         int    solution_type;
    2019
    2120        //first recover parameters common to all solutions
    2221        femmodel->parameters->FindParam(&save_results,SaveResultsEnum);
    23         femmodel->parameters->FindParam(&solution_type,SolutionTypeEnum);
    2422
    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);
    2729
    2830        if(save_results){
  • issm/trunk-jpl/src/c/solutions/solutions.h

    r11823 r11830  
    2020void hydrology_core_step(FemModel* femmodel,int step, double time);
    2121void thermal_core(FemModel* femmodel);
    22 void thermal_core_step(FemModel* femmodel,int step=0, double time=0);
    2322void enthalpy_core(FemModel* femmodel);
    24 void enthalpy_core_step(FemModel* femmodel,int step=0, double time=0);
    2523void surfaceslope_core(FemModel* femmodel);
    2624void bedslope_core(FemModel* femmodel);
  • issm/trunk-jpl/src/c/solutions/thermal_core.cpp

    r11829 r11830  
    1818        double melting_offset;
    1919        bool   save_results;
    20         int    solution_type;
    2120        bool   dakota_analysis  = false;
    2221
     
    3029        }
    3130
    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);
    3438
    3539        if(save_results){
  • issm/trunk-jpl/src/c/solutions/transient_core.cpp

    r11827 r11830  
    9696
    9797                if(isthermal && dim==3){
    98                         _printf_(VerboseSolution(),"   computing temperatures:\n");
     98                        _printf_(VerboseSolution(),"   computing temperatures\n");
    9999                        #ifdef _HAVE_THERMAL_
    100100                        if(isenthalpy==0){
    101                                 thermal_core_step(femmodel,step,time);
     101                                thermal_core(femmodel);
    102102                        }
    103103                        else{
    104                                 enthalpy_core_step(femmodel,step,time);
     104                                enthalpy_core(femmodel);
    105105                        }
    106106                        #else
  • issm/trunk-jpl/src/m/model/plot/plot_section.m

    r10987 r11830  
    111111
    112112                        %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
    116114                        plot(s,data_s,'color',color(i,:),'LineWidth',getfieldvalue(options,'linewidth',1))
     115                        hold on
    117116
    118117
  • issm/trunk-jpl/src/m/solutions/enthalpy_core.m

    r11827 r11830  
    1010
    1111        issmprintf(VerboseSolution,'\n%s',['   computing enthalpy']);
    12         femmodel=enthalpy_core_step(femmodel);
     12        femmodel=SetCurrentConfiguration(femmodel,EnthalpyAnalysisEnum);
     13        femmodel=solver_nonlinear(femmodel,true);
    1314
    1415        if (save_results),
  • issm/trunk-jpl/src/m/solutions/thermal_core.m

    r11827 r11830  
    1111
    1212        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);
    1419
    1520        if (save_results),
  • issm/trunk-jpl/src/m/solutions/transient_core.m

    r11827 r11830  
    6666                        issmprintf(VerboseSolution,'\n%s',['   computing temperature']);
    6767                        if (isenthalpy==0),
    68                                 femmodel=thermal_core_step(femmodel);
     68                                femmodel=thermal_core(femmodel);
    6969                        else
    70                                 femmodel=enthalpy_core_step(femmodel);
     70                                femmodel=enthalpy_core(femmodel);
    7171                        end
    7272                end
Note: See TracChangeset for help on using the changeset viewer.