diff --git a/applications/SolidMechanicsApplication/custom_solvers/convergence_criteria/residual_criterion.hpp b/applications/SolidMechanicsApplication/custom_solvers/convergence_criteria/residual_criterion.hpp index 8d0c56314dd8..4032904e4065 100644 --- a/applications/SolidMechanicsApplication/custom_solvers/convergence_criteria/residual_criterion.hpp +++ b/applications/SolidMechanicsApplication/custom_solvers/convergence_criteria/residual_criterion.hpp @@ -136,6 +136,10 @@ class ResidualCriterion : public ConvergenceCriterion< TSparseSpace, TDenseSpac const SystemVectorType& rb ) override { + if (rModelPart.GetProcessInfo()[NL_ITERATION_NUMBER] <= 1) { + this->Set(LocalFlagType::INITIALIZED, false); + } + if (TSparseSpace::Size(rb) != 0) //if we are solving for something {