OGS
DampingReductionStrategy.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
8namespace NumLib
9{
22{
23public:
24 DampingReductionStrategy(double damping, double damping_reduction);
25
27 GlobalVector const& minus_delta_x,
28 GlobalVector const& res,
29 GlobalMatrix const& J,
30 GlobalVector& x_new,
32 int iteration) override;
33
34private:
35 double _damping;
37};
38
39} // namespace NumLib
MathLib::EigenMatrix GlobalMatrix
MathLib::EigenVector GlobalVector
DampingReductionStrategy(double damping, double damping_reduction)
StepResult applyStep(GlobalVector const &x, GlobalVector const &minus_delta_x, GlobalVector const &res, GlobalMatrix const &J, GlobalVector &x_new, NewtonStepContext &ctx, int iteration) override
Result returned by a step strategy's applyStep().