Skip to content

Commit

Permalink
Softened tolerance for homotopy solver
Browse files Browse the repository at this point in the history
  • Loading branch information
qichenghua authored and OpenModelica-Hudson committed Jul 18, 2017
1 parent 46e1cff commit 34f3bd7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion SimulationRuntime/cpp/Solver/Nox/Nox.cpp
Expand Up @@ -557,8 +557,18 @@ void Nox::LocaHomotopySolve(const int numberofhomotopytries)
Teuchos::RCP<LOCA::MultiContinuation::AbstractGroup> grp = Teuchos::rcp(new LOCA::LAPACK::Group(globalData, *LocaLapackInterface));
grp->setParams(p);

// Set up the status tests
Teuchos::RCP<NOX::StatusTest::NormF> statusTestNormF = Teuchos::rcp(new NOX::StatusTest::NormF(1.0e-7));
Teuchos::RCP<NOX::StatusTest::MaxIters> statusTestMaxIters = Teuchos::rcp(new NOX::StatusTest::MaxIters(100));
Teuchos::RCP<NOX::StatusTest::Stagnation> statusTestStagnation = Teuchos::rcp(new NOX::StatusTest::Stagnation(15,0.99));
Teuchos::RCP<NOX::StatusTest::Divergence> statusTestDivergence = Teuchos::rcp(new NOX::StatusTest::Divergence(1.0e13));
//statusTestSgnChange = Teuchos::rcp(new NOX::StatusTest::SgnChange(5.0e-7));
Teuchos::RCP<NOX::StatusTest::Combo> statusTestsCombo = Teuchos::rcp(new NOX::StatusTest::Combo(NOX::StatusTest::Combo::OR, statusTestNormF, statusTestMaxIters));
statusTestsCombo->addStatusTest(statusTestStagnation);
statusTestsCombo->addStatusTest(statusTestDivergence);

// Create the stepper
LOCA::Stepper stepper(globalData, grp, _statusTestsCombo, paramList);
LOCA::Stepper stepper(globalData, grp, statusTestsCombo, paramList);

try{
// Perform continuation run
Expand Down

0 comments on commit 34f3bd7

Please sign in to comment.