mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Opm Parser: Include PATHS when importing WSEGLINK
* Opm Parser: Include PATHS when importing WSEGLINK Add PATHS to supported keywords to be able to use include files with alias in file path. * Move opm-parser-tests into OPM solution folder
This commit is contained in:
1 parent
493531626f
commit
0fa001fc70
5 files changed
+34
-2
No files matched your search
@@ -25,6 +25,7 @@
|
||||
#include "opm/input/eclipse/Parser/ParseContext.hpp"
|
||||
#include "opm/input/eclipse/Parser/Parser.hpp"
|
||||
#include "opm/input/eclipse/Parser/ParserKeywords/I.hpp"
|
||||
#include "opm/input/eclipse/Parser/ParserKeywords/P.hpp"
|
||||
#include "opm/input/eclipse/Parser/ParserKeywords/V.hpp"
|
||||
#include "opm/input/eclipse/Parser/ParserKeywords/W.hpp"
|
||||
|
||||
@@ -130,12 +131,15 @@ std::map<std::string, std::vector<std::pair<int, int>>> RiaOpmParserTools::extra
|
||||
{
|
||||
if ( !std::filesystem::exists( filename ) ) return {};
|
||||
|
||||
Opm::Parser parser( false );
|
||||
Opm::Parser parser( false );
|
||||
|
||||
const Opm::ParserKeywords::WSEGLINK kw1;
|
||||
const Opm::ParserKeywords::INCLUDE kw2;
|
||||
const Opm::ParserKeywords::PATHS kw3;
|
||||
|
||||
parser.addParserKeyword( kw1 );
|
||||
parser.addParserKeyword( kw2 );
|
||||
parser.addParserKeyword( kw3 );
|
||||
|
||||
std::stringstream ss;
|
||||
Opm::ParseContext parseContext( Opm::InputError::Action::WARN );
|
||||
|
||||
Reference in new issue
Block a user