Skip to content

Commit e7da3a2

Browse files
committed
Add warning for relative step tolerance, unused by trilinos solver
1 parent 0416111 commit e7da3a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/solvers/trilinos_nox_nonlinear_solver.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ NoxNonlinearSolver<T>::solve (SparseMatrix<T> & /* jac_in */, // System Jacobi
385385
Teuchos::RCP<NOX::Epetra::Group> grpPtr = Teuchos::rcp(new NOX::Epetra::Group(printParams, iReq, x, linSys));
386386
NOX::Epetra::Group & grp = *(grpPtr.get());
387387

388+
if (this->relative_step_tolerance != 0) // 0 is default value
389+
libmesh_warning("Setting the relative step tolerance is currently not supported with the trilinos nox nonlinear solver.");
390+
388391
Teuchos::RCP<NOX::StatusTest::NormF> absresid =
389392
Teuchos::rcp(new NOX::StatusTest::NormF(this->absolute_residual_tolerance, NOX::StatusTest::NormF::Unscaled));
390393
Teuchos::RCP<NOX::StatusTest::NormF> relresid =

0 commit comments

Comments
 (0)