My Project
Loading...
Searching...
No Matches
EclipseConfig.hpp
1/*
2 Copyright 2016 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_ECLIPSE_CONFIG_HPP
21#define OPM_ECLIPSE_CONFIG_HPP
22
23#include <opm/input/eclipse/EclipseState/InitConfig/InitConfig.hpp>
24#include <opm/input/eclipse/EclipseState/IOConfig/FIPConfig.hpp>
25#include <opm/input/eclipse/EclipseState/IOConfig/IOConfig.hpp>
26
27namespace Opm {
28
29 class Deck;
30
32 {
33 public:
34 EclipseConfig() = default;
35 explicit EclipseConfig(const Deck& deck);
36 EclipseConfig(const InitConfig& initConfig,
37 const FIPConfig& fip_conf,
38 const IOConfig& io_conf);
39
40 static EclipseConfig serializationTestObject();
41
42 InitConfig& init();
43 IOConfig& io();
44 const IOConfig& io() const;
45 const InitConfig& init() const;
46 const FIPConfig& fip() const;
47
48 bool operator==(const EclipseConfig& data) const;
49 static bool rst_cmp(const EclipseConfig& full_config, const EclipseConfig& rst_config);
50 template<class Serializer>
51 void serializeOp(Serializer& serializer)
52 {
53 serializer(m_initConfig);
54 serializer(fip_config);
55 serializer(io_config);
56 }
57
58 private:
59 InitConfig m_initConfig;
60 FIPConfig fip_config;
61 IOConfig io_config;
62 };
63}
64
65#endif // OPM_ECLIPSE_CONFIG_HPP
Definition Deck.hpp:49
Definition EclipseConfig.hpp:32
Class holding FIP configuration from RPTSOL/RPTSCHED keyword.
Definition FIPConfig.hpp:32
Definition IOConfig.hpp:147
Definition InitConfig.hpp:32
Class for (de-)serializing.
Definition Serializer.hpp:84
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30