Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnezdyur committed Jan 6, 2025
1 parent c019042 commit 14840a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/optimization/src/executioners/AdjointSolve.C
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ AdjointSolve::AdjointSolve(Executioner & ex)
paramError("forward_system", "Forward system does not appear to be a 'NonlinearSystem'.");
if (!dynamic_cast<NonlinearSystem *>(&_nl_adjoint))
paramError("adjoint_system", "Adjoint system does not appear to be a 'NonlinearSystem'.");
// Adjoint system should never perform it's own automatic scaling. Scaling is
// taken from the forward system
// Adjoint system should never perform its own automatic scaling. Scaling factors from the forward
// system are applied.
_nl_adjoint.automaticScaling(false);

// We need to force the forward system to have a scaling vector. This is
// incase a user provides scaling for an individual variables but doesn't have any
// in case a user provides scaling for an individual variables but doesn't have any
// AD objects.
_nl_forward.addScalingVector();
}
Expand Down

0 comments on commit 14840a3

Please sign in to comment.