-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1010 from jokva/new-keyword-definitions
Parse new set of keywords
- Loading branch information
Showing
32 changed files
with
877 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright 2016 Statoil ASA. | ||
This file is part of the Open Porous Media project (OPM). | ||
OPM is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OPM is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with OPM. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <string> | ||
|
||
#define BOOST_TEST_MODULE ParserIntegrationTests | ||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <opm/parser/eclipse/Parser/Parser.hpp> | ||
|
||
using namespace Opm; | ||
|
||
BOOST_AUTO_TEST_CASE( parse_CECON ) { | ||
const std::string input = R"( | ||
CECON | ||
PROD1 4* 0.7 / | ||
'P*' 2* 2 2 1* 3.5 / | ||
/ | ||
)"; | ||
Parser().parseString( input ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
Copyright 2016 Statoil ASA. | ||
This file is part of the Open Porous Media project (OPM). | ||
OPM is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OPM is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with OPM. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <string> | ||
|
||
#define BOOST_TEST_MODULE ParserIntegrationTests | ||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <opm/parser/eclipse/Parser/Parser.hpp> | ||
|
||
using namespace Opm; | ||
|
||
BOOST_AUTO_TEST_CASE( parse_COORDSYS ) { | ||
const std::string input = R"( | ||
RUNSPEC | ||
NUMRES | ||
1 / | ||
GRID | ||
COORDSYS | ||
1 1141 / | ||
COORDSYS | ||
1 1141 'COMP' 'JOIN' 1 2 / | ||
COORDSYS | ||
1 1141 'COMP' 'JOIN' / | ||
COORDSYS | ||
1 1141 'INCOMP' / | ||
)"; | ||
Parser().parseString( input ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright 2016 Statoil ASA. | ||
This file is part of the Open Porous Media project (OPM). | ||
OPM is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OPM is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with OPM. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#define BOOST_TEST_MODULE ParserIntegrationTests | ||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <opm/parser/eclipse/Parser/Parser.hpp> | ||
|
||
using namespace Opm; | ||
|
||
BOOST_AUTO_TEST_CASE( parse_DEBUG ) { | ||
Parser().parseFile( "testdata/integration_tests/DEBUG/DEBUG.DATA" ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
Copyright 2016 Statoil ASA. | ||
This file is part of the Open Porous Media project (OPM). | ||
OPM is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OPM is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with OPM. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <string> | ||
|
||
#define BOOST_TEST_MODULE ParserIntegrationTests | ||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <opm/parser/eclipse/Parser/Parser.hpp> | ||
|
||
using namespace Opm; | ||
|
||
BOOST_AUTO_TEST_CASE( parse_GRUPRIG ) { | ||
const std::string input = R"( | ||
-- | ||
-- GRUP WORK DRILL RIG | ||
-- NAME RIG RIG OPTN | ||
GRUPRIG | ||
'FIELD' 1 1 ADD / | ||
'FIELD' 2* REMOVE / | ||
/ | ||
)"; | ||
Parser().parseString( input ); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Copyright 2016 Statoil ASA. | ||
This file is part of the Open Porous Media project (OPM). | ||
OPM is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
OPM is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with OPM. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#define BOOST_TEST_MODULE ParserIntegrationTests | ||
#include <boost/test/unit_test.hpp> | ||
|
||
#include <opm/parser/eclipse/Parser/Parser.hpp> | ||
|
||
using namespace Opm; | ||
|
||
BOOST_AUTO_TEST_CASE( parse_LGR ) { | ||
Parser().parseFile( "testdata/integration_tests/LGR/LGR.DATA" ); | ||
} |
Oops, something went wrong.