My Project
Loading...
Searching...
No Matches
ScheduleRestartInfo.hpp
1
/*
2
Copyright 2021 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 SCHEDULE_RESTART_INFO_HPP
20
#define SCHEDULE_RESTART_INFO_HPP
21
22
#include <cstddef>
23
#include <ctime>
24
25
namespace
Opm
{
26
27
class
Deck;
28
namespace
RestartIO {
struct
RstState; }
29
30
struct
ScheduleRestartInfo
31
{
32
std::time_t time{0};
33
std::size_t report_step{0};
34
bool
skiprest{
false
};
35
36
ScheduleRestartInfo
() =
default
;
37
38
ScheduleRestartInfo
(
const
RestartIO::RstState
* rst,
const
Deck
& deck);
39
bool
operator==(
const
ScheduleRestartInfo
& other)
const
;
40
static
ScheduleRestartInfo
serializationTestObject();
41
42
template
<
class
Serializer>
43
void
serializeOp(
Serializer
& serializer)
44
{
45
serializer(this->time);
46
serializer(this->report_step);
47
serializer(this->skiprest);
48
}
49
};
50
51
}
52
53
#endif
Opm::Deck
Definition
Deck.hpp:49
Opm::Serializer
Class for (de-)serializing.
Definition
Serializer.hpp:84
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
Opm::RestartIO::RstState
Definition
state.hpp:54
Opm::ScheduleRestartInfo
Definition
ScheduleRestartInfo.hpp:31
opm
input
eclipse
Schedule
ScheduleRestartInfo.hpp
Generated by
1.9.8