Commit Graph
10 Commits
Author SHA1 Message Date
Håkon Hægland 11eaa3d7d4 Implement Python step_init() method.
The step_init() method initializes the simulation. It is required for
the Python script to run step_init() before calling the step() method (which will be
implemented in the next commit).
2020-03-02 11:56:50 +01:00
Håkon Hægland b125ad415d [Style] Fix naming of Python functions.
Fix naming style for Python API functions to conform with PEP 8
recommendations.
2020-02-29 07:02:26 +01:00
Håkon Hægland c66b564b35 Refactor run() into prepareRun_()
We would like to add a step() method to simulators.cpp, that will let a
Python script advance the simulator one report step at a time. Before
calling step(), the Python script will have to call a step_init()
method that initializes the simulator, similar to what is done in run()
now. In order to avoid duplication of code in run() and step_init() the
run() method is here refactored into a prepareRun_() function that can
be called from both step_init() and from run().
2020-02-25 00:52:38 +01:00
Michael Sargado 9f5a13fcfb Constructor overloaded to accept either filename or complete set of parsed objects. 2020-02-21 00:14:13 +01:00
Michael Sargado b2a8ae0f31 Overloaded constructor 2020-02-21 00:14:13 +01:00
Michael Sargado ea6cd34c7b Python bindings for blackoil simulator. 2020-02-21 00:14:13 +01:00
Michael Sargado 1661f6579e Removed pycmake 2019-11-06 13:32:21 +01:00
Michael Sargado 9474470984 Added CMakeLists for python folder. 2019-10-31 16:39:36 +01:00
Michael Sargado 076ea3db77 Added pycmake folder. 2019-10-31 16:38:06 +01:00
Michael Sargado eae6afff80 New python folder containing pybind11 2019-10-31 16:35:29 +01:00