Skip to content

Commit

Permalink
Adjusting tolerances once more.
Browse files Browse the repository at this point in the history
  • Loading branch information
dridzal committed Jun 10, 2023
1 parent 4a848fa commit 3aeb515
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/rol/test/algorithm/TypeP/test_01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,17 @@ int main(int argc, char *argv[]) {

try {
RealT tol = std::sqrt(ROL::ROL_EPSILON<RealT>());
RealT errtol = 1e3*tol;

ROL::ParameterList list;
list.sublist("General").set("Output Level",iprint);
list.sublist("Step").set("Type","Line Search");
list.sublist("Step").sublist("Line Search").set("Initial Step Size",1e0);
list.sublist("Step").sublist("Line Search").set("Maximum Step Size",1e8);
list.sublist("Step").sublist("Line Search").set("Use Adaptive Step Size Selection",true);
list.sublist("Status Test").set("Gradient Tolerance",tol);
list.sublist("Status Test").set("Constraint Tolerance",1e-1*tol);
list.sublist("Status Test").set("Gradient Tolerance",1e1*tol);
list.sublist("Status Test").set("Step Tolerance",1e-4*tol);
list.sublist("Status Test").set("Use Relative Tolerances",true);
list.sublist("Status Test").set("Iteration Limit", 10000);

int dim = 5;
Expand Down Expand Up @@ -172,7 +173,8 @@ int main(int argc, char *argv[]) {
}
*outStream << std::endl;
*outStream << " Max-Error = " << err << std::endl;
errorFlag += (err > 100*tol ? 1 : 0);
*outStream << " Error Tol = " << errtol << std::endl;
errorFlag += (err > errtol ? 1 : 0);
}
catch (std::logic_error& err) {
*outStream << err.what() << "\n";
Expand Down

0 comments on commit 3aeb515

Please sign in to comment.