My Project
Loading...
Searching...
No Matches
WList.hpp
1
/*
2
Copyright 2019 Equinor 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
#ifndef WLIST_HPP
20
#define WLIST_HPP
21
22
#include <cstddef>
23
#include <unordered_set>
24
#include <vector>
25
#include <string>
26
27
namespace
Opm
{
28
29
class
WList
{
30
public
:
31
using
storage = std::vector<std::string>;
32
33
WList
() =
default
;
34
WList
(
const
storage& wlist, std::string wlname);
35
std::size_t size()
const
;
36
void
add(
const
std::string& well);
37
void
del(
const
std::string& well);
38
bool
has(
const
std::string& well)
const
;
39
std::string getName()
const
;
40
41
std::vector<std::string> wells()
const
;
42
bool
operator==(
const
WList
& data)
const
;
43
44
template
<
class
Serializer>
45
void
serializeOp(
Serializer
& serializer)
46
{
47
serializer(well_list);
48
serializer(name);
49
}
50
51
private
:
52
storage well_list;
53
std::string name;
54
55
};
56
57
}
58
59
#endif
Opm::Serializer
Class for (de-)serializing.
Definition
Serializer.hpp:84
Opm::WList
Definition
WList.hpp:29
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
Schedule
Well
WList.hpp
Generated by
1.9.8