mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 18:21:00 -06:00
91ac3a2a32
Adds some methods that enables Opm::Schedule to be dynamically modified from Python. A test case in test_schedule.py illustrates the use case.
13 lines
527 B
Python
13 lines
527 B
Python
# Instead of having the pybind11 extension module, e.g.
|
|
# simulators.cpython-310-x86_64-linux-gnu.so located
|
|
# directly in the opm2 directory, we create a package (sub
|
|
# directory) with the same name and place it there.
|
|
# In this way we can do (if needed in the future)
|
|
#
|
|
# from opm.simulators import BlackOilSimulator, FoamSimulator, PurePythonUtils, ...
|
|
#
|
|
# where FoamSimulator and PurePythonUtils does not currently exists,
|
|
# but could be possible future extensions..
|
|
#
|
|
from .simulators import BlackOilSimulator
|