32 void _update_(
bool timeWindowComplete,
const Eigen::VectorXd &oldValues,
const Eigen::VectorXd &res)
override;
Interface for preconditioner variants that can be applied to quasi-Newton acceleration schemes.
Preconditioner that uses the residuals of all iterations of the current time window summed up to scal...
std::vector< double > _residualSum
ResidualSumPreconditioner(int maxNonConstTimeWindows, bool preconditionerUpdateOnThreshold)
~ResidualSumPreconditioner() override=default
Destructor, empty.
std::vector< double > _previousResidualSum
bool _preconditionerUpdateOnThreshold
void initialize(std::vector< size_t > &svs) override
initialize the preconditioner
void _update_(bool timeWindowComplete, const Eigen::VectorXd &oldValues, const Eigen::VectorXd &res) override
Update the scaling after every FSI iteration.
This class provides a lightweight logger.