14class AbsoluteConvergenceMeasureTest;
45 const Eigen::VectorXd &oldValues,
46 const Eigen::VectorXd &newValues)
61 os <<
"absolute convergence measure: ";
62 os <<
"two-norm diff of data \"" << dataName <<
"\" = ";
Measures the convergence from an old data set to a new one.
AbsoluteConvergenceMeasure(double convergenceLimit)
virtual ~AbsoluteConvergenceMeasure()
virtual std::string getAbbreviation() const
Returns an abbreviation of the name of the measure for the log file headers.
virtual void measure(const Eigen::VectorXd &oldValues, const Eigen::VectorXd &newValues)
Performs convergence measurement.
virtual bool isConvergence() const
Returns true, if the last measurement indicates convergence.
virtual double getNormResidual()
Returns the l2-norm of the coupling residuum.
virtual std::string printState(const std::string &dataName)
Adds current convergence information to output stream.
virtual void newMeasurementSeries()
To be called when a new meas. series (iteration process) starts.
Interface for measures checking the convergence of a series of datasets.
This class provides a lightweight logger.
static double l2norm(const Eigen::VectorXd &vec)
The l2 norm of a vector is calculated on distributed data.
Main namespace of the precice library.
static std::unique_ptr< precice::Participant > impl
T setprecision(T... args)