Changeset 14414
- Timestamp:
- 02/28/13 08:44:45 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/solutions/diagnostic_core.cpp
r13700 r14414 22 22 bool isl1l2 = false; 23 23 bool isstokes = false; 24 bool isnewton = false;25 24 bool conserve_loads = true; 26 25 bool modify_loads = true; 27 26 bool save_results; 27 int newton; 28 28 int solution_type; 29 29 int numoutputs = 0; … … 36 36 femmodel->parameters->FindParam(&isl1l2,FlowequationIsl1l2Enum); 37 37 femmodel->parameters->FindParam(&isstokes,FlowequationIsstokesEnum); 38 femmodel->parameters->FindParam(& isnewton,DiagnosticIsnewtonEnum);38 femmodel->parameters->FindParam(&newton,DiagnosticIsnewtonEnum); 39 39 femmodel->parameters->FindParam(&dakota_analysis,QmuIsdakotaEnum); 40 40 femmodel->parameters->FindParam(&save_results,SaveResultsEnum); … … 76 76 if(VerboseSolution()) _pprintLine_(" computing velocities"); 77 77 femmodel->SetCurrentConfiguration(DiagnosticHorizAnalysisEnum); 78 if( isnewton)79 solver_newton(femmodel); 78 if(newton>0) 79 solver_newton(femmodel); 80 80 else 81 81 solver_nonlinear(femmodel,conserve_loads); -
issm/trunk-jpl/src/c/solvers/solver_newton.cpp
r14167 r14414 15 15 /*intermediary: */ 16 16 bool converged; 17 int count ;17 int count,newton; 18 18 IssmDouble kmax; 19 19 Matrix<IssmDouble>* Kff = NULL; … … 37 37 femmodel->parameters->FindParam(&max_nonlinear_iterations,DiagnosticMaxiterEnum); 38 38 femmodel->parameters->FindParam(&configuration_type,ConfigurationTypeEnum); 39 femmodel->parameters->FindParam(&newton,DiagnosticIsnewtonEnum); 39 40 femmodel->UpdateConstraintsx(); 40 41
Note:
See TracChangeset
for help on using the changeset viewer.