Changeset 14414


Ignore:
Timestamp:
02/28/13 08:44:45 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: newton is now an integer

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

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

    r13700 r14414  
    2222        bool  isl1l2            = false;
    2323        bool  isstokes          = false;
    24         bool  isnewton          = false;
    2524        bool  conserve_loads    = true;
    2625        bool  modify_loads      = true;
    2726        bool  save_results;
     27        int   newton;
    2828        int   solution_type;
    2929        int   numoutputs        = 0;
     
    3636        femmodel->parameters->FindParam(&isl1l2,FlowequationIsl1l2Enum);
    3737        femmodel->parameters->FindParam(&isstokes,FlowequationIsstokesEnum);
    38         femmodel->parameters->FindParam(&isnewton,DiagnosticIsnewtonEnum);
     38        femmodel->parameters->FindParam(&newton,DiagnosticIsnewtonEnum);
    3939        femmodel->parameters->FindParam(&dakota_analysis,QmuIsdakotaEnum);
    4040        femmodel->parameters->FindParam(&save_results,SaveResultsEnum);
     
    7676                if(VerboseSolution()) _pprintLine_("   computing velocities");
    7777                femmodel->SetCurrentConfiguration(DiagnosticHorizAnalysisEnum);
    78                 if(isnewton)
    79                  solver_newton(femmodel); 
     78                if(newton>0)
     79                 solver_newton(femmodel);
    8080                else
    8181                 solver_nonlinear(femmodel,conserve_loads);
  • issm/trunk-jpl/src/c/solvers/solver_newton.cpp

    r14167 r14414  
    1515        /*intermediary: */
    1616        bool   converged;
    17         int    count;
     17        int    count,newton;
    1818        IssmDouble kmax;
    1919        Matrix<IssmDouble>* Kff = NULL;
     
    3737        femmodel->parameters->FindParam(&max_nonlinear_iterations,DiagnosticMaxiterEnum);
    3838        femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum);
     39        femmodel->parameters->FindParam(&newton,DiagnosticIsnewtonEnum);
    3940        femmodel->UpdateConstraintsx();
    4041
Note: See TracChangeset for help on using the changeset viewer.