AggregateActionxData.hpp
Go to the documentation of this file.
1/*
2 Copyright (c) 2018 Statoil ASA
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef OPM_AGGREGATE_Actionx_DATA_HPP
21#define OPM_AGGREGATE_Actionx_DATA_HPP
22
25
34
35#include <cstddef>
36#include <string>
37#include <vector>
38#include <map>
39
40namespace Opm {
41 class Schedule;
42 class UDQInput;
43 class UDQActive;
44} // Opm
45
46
47
48namespace Opm { namespace RestartIO { namespace Helpers {
49
51{
52public:
53 explicit AggregateActionxData(const std::vector<int>& actDims);
54
56 const Opm::SummaryState& st,
57 const std::vector<int>& actDims,
58 const std::size_t simStep);
59
60 const std::vector<int>& getIACT() const
61 {
62 return this->iACT_.data();
63 }
64
65
66 const std::vector<float>& getSACT() const
67 {
68 return this->sACT_.data();
69 }
70
71 const std::vector<EclIO::PaddedOutputString<8>>& getZACT() const
72 {
73 return this->zACT_.data();
74 }
75
76 const std::vector<EclIO::PaddedOutputString<8>>& getZLACT() const
77 {
78 return this->zLACT_.data();
79 }
80
81 const std::vector<EclIO::PaddedOutputString<8>>& getZACN() const
82 {
83 return this->zACN_.data();
84 }
85
86 const std::vector<int>& getIACN() const
87 {
88 return this->iACN_.data();
89 }
90
91 const std::vector<double>& getSACN() const
92 {
93 return this->sACN_.data();
94 }
95
96private:
99
102
105
108
111
113 WindowedArray<int> iACN_;
114
117
118};
119
120}}} // Opm::RestartIO::Helpers
121
122#endif //OPM_AGGREGATE_WELL_DATA_HPP
Definition: AggregateActionxData.hpp:51
AggregateActionxData(const std::vector< int > &actDims)
const std::vector< EclIO::PaddedOutputString< 8 > > & getZACT() const
Definition: AggregateActionxData.hpp:71
const std::vector< int > & getIACN() const
Definition: AggregateActionxData.hpp:86
const std::vector< EclIO::PaddedOutputString< 8 > > & getZACN() const
Definition: AggregateActionxData.hpp:81
const std::vector< float > & getSACT() const
Definition: AggregateActionxData.hpp:66
void captureDeclaredActionxData(const Opm::Schedule &sched, const Opm::SummaryState &st, const std::vector< int > &actDims, const std::size_t simStep)
const std::vector< double > & getSACN() const
Definition: AggregateActionxData.hpp:91
const std::vector< int > & getIACT() const
Definition: AggregateActionxData.hpp:60
const std::vector< EclIO::PaddedOutputString< 8 > > & getZLACT() const
Definition: AggregateActionxData.hpp:76
const std::vector< T > & data() const
Definition: WindowedArray.hpp:126
Definition: Schedule.hpp:113
Definition: SummaryState.hpp:65
Definition: A.hpp:4