49 const Eigen::VectorXd &oldValues,
50 const Eigen::VectorXd &newValues)
override
70 os <<
"residual relative convergence measure: ";
71 os <<
"relative two-norm diff of data \"" << dataName <<
"\" = ";
#define PRECICE_ASSERT(...)
Interface for measures checking the convergence of a series of datasets.
double _normFirstResidual
double _convergenceLimitPercent
std::string getAbbreviation() const override
Returns an abbreviation of the name of the measure for the log file headers.
void measure(const Eigen::VectorXd &oldValues, const Eigen::VectorXd &newValues) override
Performs convergence measurement.
std::string printState(const std::string &dataName) override
Adds current convergence information to output stream.
~ResidualRelativeConvergenceMeasure() override=default
bool isConvergence() const override
Returns true, if the last measurement indicates convergence.
double getNormResidual() override
Returns the l2-norm of the coupling residuum.
void newMeasurementSeries() override
To be called when a new meas. series (iteration process) starts.
ResidualRelativeConvergenceMeasure(double convergenceLimitPercent)
Constructor.
This class provides a lightweight logger.
static double l2norm(const Eigen::VectorXd &vec)
The l2 norm of a vector is calculated on distributed data.
constexpr bool equals(const Eigen::MatrixBase< DerivedA > &A, const Eigen::MatrixBase< DerivedB > &B, double tolerance=NUMERICAL_ZERO_DIFFERENCE)
Compares two Eigen::MatrixBase for equality up to tolerance.
T setprecision(T... args)