mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix the fallout caused by the slightly too premature merge of PR #213
I should have put some message at the end of that PR when the API of opm-parser changed...
This commit is contained in:
parent
68cf022a9d
commit
4f44cde846
@ -50,6 +50,8 @@
|
||||
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/checkDeck.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
@ -109,8 +111,8 @@ try
|
||||
std::shared_ptr<EclipseState> eclipseState;
|
||||
try {
|
||||
deck = parser->parseFile(deck_filename, strict_parsing, parserLog);
|
||||
EclipseState::checkDeck(deck, parserLog);
|
||||
eclipseState.reset(new EclipseState(deck, parserLog));
|
||||
Opm::checkDeck(deck, parserLog);
|
||||
eclipseState.reset(new Opm::EclipseState(deck, parserLog));
|
||||
}
|
||||
catch (const std::invalid_argument& e) {
|
||||
if (parserLog->size() > 0) {
|
||||
|
@ -72,6 +72,8 @@
|
||||
|
||||
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||
#include <opm/parser/eclipse/Parser/Parser.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/checkDeck.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
@ -135,7 +137,7 @@ try
|
||||
std::shared_ptr<EclipseState> eclipseState;
|
||||
try {
|
||||
deck = parser->parseFile(deck_filename, strict_parsing, parserLog);
|
||||
EclipseState::checkDeck(deck, parserLog);
|
||||
checkDeck(deck, parserLog);
|
||||
eclipseState.reset(new EclipseState(deck, parserLog));
|
||||
}
|
||||
catch (const std::invalid_argument& e) {
|
||||
|
Loading…
Reference in New Issue
Block a user