Skip to content

Commit

Permalink
Parse TUNINGDP
Browse files Browse the repository at this point in the history
  • Loading branch information
jokva committed Dec 14, 2016
1 parent 480440d commit 3ff085b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion opm/parser/eclipse/IntegrationTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ foreach(tapp TransMultIntegrationTests CheckDeckValidity IntegrationTests ParseW
ParseRSVD ParsePVTG ParsePVTO ParseSWOF ParseCOORDSYS ParseGRUPRIG BoxTest
ParseMULTREGT ParseSGOF ParseSLGOF EclipseGridCreateFromDeck NNCTests
ResinsightTest IOConfigIntegrationTest ParseCECON ParseWDFACCOR
ParseWORKLIM
ParseWORKLIM ParseTUNINGDP
ParseWEFAC Polymer ParsePLYADSS ParseMULTSEGWELL ParseMiscible)
opm_add_test(run${tapp} SOURCES ${tapp}.cpp LIBRARIES opmparser ${Boost_LIBRARIES})
endforeach()
Expand Down
54 changes: 54 additions & 0 deletions opm/parser/eclipse/IntegrationTests/ParseTUNINGDP.cpp
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_TUNINGDP ) {
const std::string input = R"(
TUNINGDP
/
TUNINGDP
1.0
/
TUNINGDP
1.0 2.0
/
TUNINGDP
1.0 2.0 3.0
/
TUNINGDP
1.0 2.0 3.0 4.0
/
)";
Parser().parseString( input );
}

11 changes: 11 additions & 0 deletions opm/parser/share/keywords/000_Eclipse100/T/TUNINGDP
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name" : "TUNINGDP",
"sections" : ["SCHEDULE"],
"size" : 1,
"items" : [
{ "name" : "TRGLCV", "value_type" : "DOUBLE" },
{ "name" : "XXXLCV", "value_type" : "DOUBLE" },
{ "name" : "TRGDDP", "value_type" : "DOUBLE" },
{ "name" : "TRGDDS", "value_type" : "DOUBLE" }
]
}

0 comments on commit 3ff085b

Please sign in to comment.