opm
simulators
utils
ComponentName.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2013, 2015 SINTEF ICT, Applied Mathematics.
3
Copyright 2014, 2015 Dr. Blatt - HPC-Simulation-Software & Services
4
Copyright 2014, 2015 Statoil ASA.
5
Copyright 2015 NTNU
6
Copyright 2015, 2016, 2017 IRIS AS
7
8
This file is part of the Open Porous Media project (OPM).
9
10
OPM is free software: you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation, either version 3 of the License, or
13
(at your option) any later version.
14
15
OPM is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with OPM. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#ifndef COMPONENT_NAME_HPP
25
#define COMPONENT_NAME_HPP
26
27
#include <string>
28
#include <vector>
29
30
namespace
Opm
{
31
32
template
<
class
Flu
id
System,
class
Indices>
33
class
ComponentName
34
{
35
public
:
36
ComponentName
();
37
38
const
std::string&
name
(
const
int
compIdx)
const
39
{
40
return
this->names_[compIdx];
41
}
42
43
private
:
44
std::vector<std::string> names_{};
45
};
46
47
}
// namespace Opm
48
49
#endif
50
Opm::ComponentName
Definition:
ComponentName.hpp:34
Opm::ComponentName::name
const std::string & name(const int compIdx) const
Definition:
ComponentName.hpp:38
Opm::ComponentName::ComponentName
ComponentName()
Opm
Definition:
blackoilboundaryratevector.hh:37