Skip to content

Commit 0416111

Browse files
committed
Add warning on using the absolute step tolerance
refs #4328
1 parent b322556 commit 0416111

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/solvers/petsc_nonlinear_solver.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,10 @@ PetscNonlinearSolver<T>::solve (SparseMatrix<T> & pre_in, // System Preconditi
970970
this->max_nonlinear_iterations,
971971
this->max_function_evaluations));
972972

973+
// Not supported by PETSc
974+
if (this->absolute_step_tolerance != 0) // 0 is default value, both in MOOSE and libMesh
975+
libmesh_warning("Setting the absolute step tolerance is not supported with the PETSc nonlinear solver.");
976+
973977
// Set the divergence tolerance for the non-linear solver
974978
#if !PETSC_VERSION_LESS_THAN(3,8,0)
975979
LibmeshPetscCall(SNESSetDivergenceTolerance(_snes, this->divergence_tolerance));

0 commit comments

Comments
 (0)