34using ArrSourceEntry = std::tuple<std::string, std::string, int, uint64_t>;
39using ExtSmryHeadType = std::tuple<time_point, RstEntry, std::vector<std::string>, std::vector<std::string>,
47 explicit ExtESmry(
const std::string& filename,
bool loadBaseRunData=
false);
49 const std::vector<float>& get(
const std::string& name);
50 std::vector<float> get_at_rstep(
const std::string& name);
51 std::string& get_unit(
const std::string& name);
54 void loadData(
const std::vector<std::string>& stringVect);
56 time_point startdate()
const {
return m_startdat; }
57 std::vector<int> start_v()
const {
return m_start_vect; }
59 bool hasKey(
const std::string& key)
const;
61 size_t numberOfTimeSteps()
const {
return m_nTstep; }
62 size_t numberOfVectors()
const {
return m_nVect; }
64 const std::vector<std::string>& keywordList()
const {
return m_keyword;}
65 std::vector<std::string> keywordList(
const std::string& pattern)
const;
67 std::vector<time_point> dates();
69 bool all_steps_available();
70 std::string rootname() {
return m_inputFileName.stem(); }
71 std::tuple<double, double> get_io_elapsed()
const;
74 std::filesystem::path m_inputFileName;
75 std::vector<std::filesystem::path> m_esmry_files;
78 std::vector<std::map<std::string, int>> m_keyword_index;
79 std::vector<std::tuple<int,int>> m_tstep_range;
80 std::vector<std::string> m_keyword;
81 std::vector<int> m_rstep;
82 std::vector<int> m_tstep;
83 std::vector<std::vector<int>> m_rstep_v;
84 std::vector<std::vector<int>> m_tstep_v;
85 std::vector<std::vector<float>> m_vectorData;
86 std::vector<bool> m_vectorLoaded;
87 std::unordered_map<std::string, std::string> kwunits;
90 std::vector<size_t> m_nTstep_v;
92 std::vector<int> m_seqIndex;
94 std::vector<uint64_t> m_rstep_offset;
96 time_point m_startdat;
97 std::vector<int> m_start_vect;
102 bool open_esmry(
const std::filesystem::path& inputFileName, ExtSmryHeadType& ext_smry_head, uint64_t& rstep_offset);
104 bool load_esmry(
const std::vector<std::string>& stringVect,
const std::vector<int>& keyIndexVect,
105 const std::vector<int>& loadKeyIndex,
int ind,
int to_ind );
107 void updatePathAndRootName(std::filesystem::path& dir, std::filesystem::path& rootN);
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30