opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
AggregateWListData.hpp
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_WLIST_DATA_HPP
21
#define OPM_AGGREGATE_WLIST_DATA_HPP
22
23
#include <
opm/output/eclipse/WindowedArray.hpp
>
24
#include <opm/io/eclipse/PaddedOutputString.hpp>
25
26
#include <cstddef>
27
#include <vector>
28
29
namespace
Opm
{
30
class
Schedule
;
31
}
// Opm
32
33
namespace
Opm
{
namespace
data {
34
class
Wells
;
35
}}
// Opm::data
36
37
namespace
Opm
{
namespace
RestartIO {
namespace
Helpers {
38
39
class
AggregateWListData
40
{
41
public
:
42
explicit
AggregateWListData(
const
std::vector<int>& inteHead);
43
44
void
captureDeclaredWListData(
const
Schedule
& sched,
45
const
std::size_t sim_step,
46
const
std::vector<int>& inteHead);
47
48
49
51
const
std::vector<int>&
getIWls
()
const
52
{
53
return
this->iWls_.data();
54
}
55
57
const
std::vector<EclIO::PaddedOutputString<8>>&
getZWls
()
const
58
{
59
return
this->zWls_.data();
60
}
61
62
63
64
private
:
66
WindowedArray<int>
iWls_;
67
69
WindowedArray<EclIO::PaddedOutputString<8>
> zWls_;
70
71
};
72
73
}}}
// Opm::RestartIO::Helpers
74
75
#endif
// OPM_AGGREGATE_WLIST_DATA_HPP
WindowedArray.hpp
Provide facilities to simplify constructing restart vectors such as IWEL or RSEG.
Opm::RestartIO::Helpers::AggregateWListData::getIWls
const std::vector< int > & getIWls() const
Retrieve Integer WLIST Data Array.
Definition
AggregateWListData.hpp:51
Opm::RestartIO::Helpers::AggregateWListData::getZWls
const std::vector< EclIO::PaddedOutputString< 8 > > & getZWls() const
Retrieve Character WLIST Data Array.
Definition
AggregateWListData.hpp:57
Opm::RestartIO::Helpers::WindowedArray
Provide read-only and read/write access to constantly sized portions/windows of a linearised buffer w...
Definition
WindowedArray.hpp:50
Opm::Schedule
Definition
Schedule.hpp:101
Opm::data::Wells
Definition
Wells.hpp:1199
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
output
eclipse
AggregateWListData.hpp
Generated by
1.17.0