python EclipseState: added constructor.
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
||||||
|
|
||||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||||
#include <opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp>
|
#include <opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp>
|
||||||
|
|
||||||
@@ -88,6 +90,7 @@ namespace {
|
|||||||
void python::common::export_EclipseState(py::module& module) {
|
void python::common::export_EclipseState(py::module& module) {
|
||||||
|
|
||||||
py::class_< EclipseState >( module, "EclipseState" )
|
py::class_< EclipseState >( module, "EclipseState" )
|
||||||
|
.def(py::init<const Deck&>())
|
||||||
.def_property_readonly( "title", &EclipseState::getTitle )
|
.def_property_readonly( "title", &EclipseState::getTitle )
|
||||||
.def( "_props", &EclipseState::get3DProperties, ref_internal)
|
.def( "_props", &EclipseState::get3DProperties, ref_internal)
|
||||||
.def( "_grid", &EclipseState::getInputGrid, ref_internal)
|
.def( "_grid", &EclipseState::getInputGrid, ref_internal)
|
||||||
|
|||||||
@@ -58,10 +58,10 @@ SATNUM
|
|||||||
#cpa = opm.io.parse('tests/data/CORNERPOINT_ACTNUM.DATA')
|
#cpa = opm.io.parse('tests/data/CORNERPOINT_ACTNUM.DATA')
|
||||||
#cls.state = cls.spe3.state
|
#cls.state = cls.spe3.state
|
||||||
#cls.cp_state = cpa.state
|
#cls.cp_state = cpa.state
|
||||||
pass
|
|
||||||
#parser = Parser()
|
parser = Parser()
|
||||||
#cls.deck_spe3 = parser.parse_string('tests/spe3/SPE3CASE1.DATA')
|
cls.deck_spe3 = parser.parse_string('tests/spe3/SPE3CASE1.DATA')
|
||||||
#cls.deck_cpa = parser.parse_string('tests/data/CORNERPOINT_ACTNUM.DATA')
|
cls.deck_cpa = parser.parse_string('tests/data/CORNERPOINT_ACTNUM.DATA')
|
||||||
#cls.state = EclipseState(cls.deck_spe3)
|
cls.state = EclipseState(cls.deck_spe3)
|
||||||
#cls.cp_state = EclipseState(cls.deck_cpa)
|
cls.cp_state = EclipseState(cls.deck_cpa)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user