opm-common
Loading...
Searching...
No Matches
checkDeck.hpp
1
/*
2
Copyright 2014 Andreas Lauser
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_CHECK_DECK_HPP
21
#define OPM_CHECK_DECK_HPP
22
23
#include <memory>
24
25
namespace
Opm
{
26
27
class
Deck
;
28
class
Parser
;
29
class
ParseContext
;
30
class
ErrorGuard
;
31
32
enum
DeckChecks {
33
SectionTopology = 0x0001,
34
35
// KeywordSection check only has an effect of the SectionTopology test is enabled
36
KeywordSection = 0x0002,
37
38
UnknownKeywords = 0x0004,
39
40
AllChecks = 0xffff
41
};
42
43
// some semantical correctness checks of the deck. this method adds a warning to
44
// the deck object if any issue is found ...
45
bool
checkDeck(
const
Deck
& deck,
const
Parser
& parser,
const
ParseContext
& parseContext,
ErrorGuard
& errorGuard,
size_t
enabledChecks = AllChecks);
46
47
}
48
49
#endif
Opm::Deck
Definition
Deck.hpp:46
Opm::ErrorGuard
Definition
ErrorGuard.hpp:30
Opm::ParseContext
Control parser behaviour in failure conditions.
Definition
ParseContext.hpp:115
Opm::Parser
The hub of the parsing process.
Definition
Parser.hpp:61
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
EclipseState
checkDeck.hpp
Generated by
1.15.0