19class RelativeConvergenceMeasureTest;
60 const Eigen::VectorXd &oldValues,
61 const Eigen::VectorXd &newValues)
86 os <<
"relative convergence measure: ";
87 os <<
"relative two-norm diff of data \"" << dataName <<
"\" = ";
90 os <<
", normalization = " <<
_norm;
Interface for measures checking the convergence of a series of datasets.
Measures the convergence from an old data set to a new one.
virtual double getNormResidual()
Returns the l2-norm of the coupling residuum.
RelativeConvergenceMeasure(double convergenceLimitPercent)
Constructor.
virtual void newMeasurementSeries()
To be called when a new meas. series (iteration process) starts.
virtual bool isConvergence() const
Returns true, if the last measurement indicates convergence.
virtual std::string getAbbreviation() const
Returns an abbreviation of the name of the measure for the log file headers.
virtual std::string printState(const std::string &dataName)
Adds current convergence information to output stream.
double _convergenceLimitPercent
virtual ~RelativeConvergenceMeasure()
virtual void measure(const Eigen::VectorXd &oldValues, const Eigen::VectorXd &newValues)
Performs convergence measurement.
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.
Main namespace of the precice library.
static std::unique_ptr< precice::Participant > impl
T setprecision(T... args)