From db8b68b1d159d38285878e6cf179cac4397b6d67 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 6 Jun 2014 14:07:14 +0200 Subject: [PATCH] Glue in support for the grid property modifier keywords this basically means using Opm::EclipseState instead of the raw deck for these keywords. with this, property modifiers like ADD, MULT, COPY and friends are supported for at least the PERM* keywords. If additional keywords are required these can be added relatively easily as well. no ctest regressions have been observed with this patch on my machine. --- examples/wells_example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/wells_example.cpp b/examples/wells_example.cpp index f2874800a..daf869543 100644 --- a/examples/wells_example.cpp +++ b/examples/wells_example.cpp @@ -36,15 +36,15 @@ try // Read input file Opm::ParserPtr parser(new Opm::Parser()); Opm::DeckConstPtr deck = parser->parseFile(file_name); + Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck)); std::cout << "Done!" << std::endl; // Setup grid GridManager grid(deck); // Define rock and fluid properties - IncompPropertiesFromDeck incomp_properties(deck, *grid.c_grid()); + IncompPropertiesFromDeck incomp_properties(deck, eclipseState, *grid.c_grid()); RockCompressibility rock_comp(deck); - EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck)); // Finally handle the wells WellsManager wells(eclipseState , 0 , *grid.c_grid(), incomp_properties.permeability());