Adds stub for Opm::EclIO::ESmry::get_unit

This commit is contained in:
Williham Williham Totland 2020-03-13 10:36:49 +01:00
parent eb921fefa9
commit 46abd74eba
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,8 @@ public:
int timestepIdxAtReportstepStart(const int reportStep) const;
const std::string& get_unit(const std::string& name) const;
private:
int nVect, nI, nJ, nK;

View File

@ -537,4 +537,8 @@ int ESmry::timestepIdxAtReportstepStart(const int reportStep) const
return seqIndex[reportStep - 1];
}
const std::string& ESmry::get_unit(const std::string& name) const {
OPM_THROW(std::out_of_range, "No unit found for key " + name);
}
}} // namespace Opm::ecl