Parse WORKLIM
This commit is contained in:
@@ -8,6 +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
|
||||
ParseWEFAC Polymer ParsePLYADSS ParseMULTSEGWELL ParseMiscible)
|
||||
opm_add_test(run${tapp} SOURCES ${tapp}.cpp LIBRARIES opmparser ${Boost_LIBRARIES})
|
||||
endforeach()
|
||||
|
||||
38
opm/parser/eclipse/IntegrationTests/ParseWORKLIM.cpp
Normal file
38
opm/parser/eclipse/IntegrationTests/ParseWORKLIM.cpp
Normal file
@@ -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_WORKLIM ) {
|
||||
const std::string input = R"(
|
||||
WORKLIM
|
||||
10.0
|
||||
/
|
||||
|
||||
)";
|
||||
Parser().parseString( input );
|
||||
}
|
||||
|
||||
8
opm/parser/share/keywords/000_Eclipse100/W/WORKLIM
Normal file
8
opm/parser/share/keywords/000_Eclipse100/W/WORKLIM
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name" : "WORKLIM",
|
||||
"sections" : ["SCHEDULE"],
|
||||
"size" : 1,
|
||||
"items" : [
|
||||
{ "name" : "LIMIT", "value_type" : "DOUBLE" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user