Skip to content

Commit

Permalink
Correcting a ug in residual_criterion.hpp. Before this change, the in…
Browse files Browse the repository at this point in the history
…itial residual was not changing between coupling iterations (See Issue #12394)
  • Loading branch information
juancamarotti committed Sep 18, 2024
1 parent 3338e1c commit d640871
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand Down

0 comments on commit d640871

Please sign in to comment.