Skip to content

Commit

Permalink
Piro: fixing issue where Trapezoidal Rule Solver was not using the
Browse files Browse the repository at this point in the history
convergence criteria passed in from the input file, such as max #
of nonlinear iterations.
  • Loading branch information
ikalash committed Sep 23, 2020
1 parent f668b57 commit 17adadb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/piro/src/Piro_TrapezoidRuleSolver_Def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ TrapezoidRuleSolver(const Teuchos::RCP<Teuchos::ParameterList> &appParams_,
"Not Implemented for Ng>1 : " << num_g << std::endl);

*out << "\nA) Get the base parameter list ...\n";

RCP<Teuchos::ParameterList> trPL = sublist(appParams, "Trapezoid Rule", true);
trPL->validateParameters(*getValidTrapezoidRuleParameters(),0);

Expand All @@ -97,7 +97,7 @@ TrapezoidRuleSolver(const Teuchos::RCP<Teuchos::ParameterList> &appParams_,

// Construct NOX solver -- will look for NOX sublist -- this must be set!!
trPL->sublist("NOX").set("Reset Initial Guess",true);
noxSolver = Teuchos::rcp(new Piro::NOXSolver<Scalar>(trPL, model));
noxSolver = Teuchos::rcp(new Piro::NOXSolver<Scalar>(appParams, model));

}

Expand Down

0 comments on commit 17adadb

Please sign in to comment.