20 #ifndef ECLFILESCOMPARATOR_HPP 21 #define ECLFILESCOMPARATOR_HPP 23 #include "Deviation.hpp" 30 namespace Opm {
namespace EclIO {
37 const std::string& basename2,
38 double absTolerance,
double relTolerance);
40 void throwOnErrors(
bool dothrow) {
44 void doAnalysis(
bool analize) {
48 size_t getNoErrors()
const {
66 static double median(std::vector<double> vec);
69 static double average(
const std::vector<double>& vec);
74 std::map<std::string, std::vector<Deviation>> deviations;
75 mutable size_t num_errors = 0;
77 std::string rootName1, rootName2;
80 void printValuesForCell(
const std::string& keyword,
81 const std::string& reference,
86 const T& value2)
const;
89 double absTolerance = 0;
90 double relTolerance = 0;
bool analysis
Perform full error analysis.
Definition: EclFilesComparator.hpp:73
static Deviation calculateDeviations(double val1, double val2)
Calculate deviations for two values.
Definition: EclFilesComparator.cpp:120
Deviation struct.
Definition: Deviation.hpp:27
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
static double average(const std::vector< double > &vec)
Calculate average of a vector.
Definition: EclFilesComparator.cpp:149
static double median(std::vector< double > vec)
Calculate median of a vector.
Definition: EclFilesComparator.cpp:132
double getRelTolerance() const
Returns the relative tolerance stored as a private member variable in the class.
Definition: EclFilesComparator.hpp:57
bool throwOnError
Throw on first error.
Definition: EclFilesComparator.hpp:72
double getAbsTolerance() const
Returns the absolute tolerance stored as a private member variable in the class.
Definition: EclFilesComparator.hpp:53
Definition: EclFilesComparator.hpp:34