Skip to content

Commit 87a7f52

Browse files
author
Lisa Julia Nebel
committed
Add link to PyAction examples in opm-test to the documentation
1 parent 288b5a8 commit 87a7f52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/sphinx_docs/docs/embedded-python.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ the SCHEDULE section when the condition evaluates to true.
1313
This is not so for PYACTION where there is one Python script in which both
1414
conditions can be evaluated and changes applied.
1515

16+
See also: PYACTION in the `reference manual <https://opm-project.org/?page_id=955>`_ for more information and `opm-tests <https://github.com/OPM/opm-tests/tree/master/pyaction>`_ for examples.
17+
1618
In order to enable the PYACTION keyword:
1719

1820
1. OPM Flow must be compiled with the cmake switches -DOPM ENABLE EMBEDDED PYTHON=ON and -DOPM ENABLE PYTHON=ON, the default is to build with these switches set to OFF.
@@ -51,5 +53,3 @@ To interact with the simulator in the embedded Python code, you can access four
5153
- current_report_step: This is an integer for the report step we are currently working on. Observe that the PYACTION is called for every simulator timestep, i.e. it will typically be called multiple times with the same value for the report step argument.
5254

5355
- current_summary_state: An instance of the `SummaryState <common.html#opm.io.sim.SummaryState>`_ class, this is where the current summary results of the simulator are stored. The SummaryState class has methods to get hold of well, group and general variables.
54-
55-
See also: PYACTION in the `reference manual <https://opm-project.org/?page_id=955>`_ for more information.

0 commit comments

Comments
 (0)