You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_sources/examples.rst.txt
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,18 @@ Examples
3
3
********
4
4
5
5
For additional examples demonstrating the applicability of **pycopm**, see the `tests <https://github.com/cssr-tools/pycopm/tree/main/tests>`_.
6
+
6
7
`ResInsight <https://resinsight.org>`_ and `plopm <https://github.com/cssr-tools/plopm>`_ are used for the visualization of the results.
7
8
8
9
.. note::
9
10
10
-
For macOS users, you could try to install ResInsight following `this <https://github.com/SoilRos/homebrew-OPM>`_. If you have issues
11
-
installing ResInsight, `ParaView <https://www.paraview.org>`_ can be also used. However, you need to add the flag **\-\-enable-vtk-output=true**
11
+
There are binary packages for Linux and Windows to install Resinsight, see the `ResInsight Documentation <https://resinsight.org/releases/>`_. For macOS users, you could try to install it using `brew <https://brew.sh>`_ by executing:
12
+
13
+
.. code-block:: bash
14
+
15
+
brew install cssr-tools/opm/resinsight
16
+
17
+
Then, you should be able to open resinsight by typing in the terminal **resinsight**. If you have issues installing ResInsight, `ParaView <https://www.paraview.org>`_ can be also used. However, you need to add the flag **\-\-enable-vtk-output=true**
12
18
to OPM Flow.
13
19
14
20
=======================
@@ -24,7 +30,7 @@ to perform HM studies in drogon and norne using `ERT <https://ert.readthedocs.io
24
30
cd examples/configurations/drogon
25
31
pycopm -i input.toml -o drogon_coarser
26
32
27
-
The following are the drogon model from `opm-tests <https://github.com/OPM/opm-tests/tree/master/drogon>`_ and coarsened model generated using **pycopm**:
33
+
The following are the drogon model from `opm-tests <https://github.com/OPM/opm-tests/tree/master/drogon>`_ and coarsened model generated using **pycopm** using ResInsight for the visualization:
Copy file name to clipboardExpand all lines: docs/_sources/installation.rst.txt
+31-17Lines changed: 31 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
Installation
3
3
============
4
4
5
-
The following steps work installing the dependencies in Ubuntu via apt-get or in macOS using brew or macports.
5
+
The following steps work installing the dependencies in Ubuntu via apt-get or in macOS using `brew <https://brew.sh>`_ or `macports<https://www.macports.org>`_.
6
6
While using package managers such as Anaconda, Miniforge, or Mamba might work, these are not tested.
7
7
The supported Python versions are 3.11 to 3.13. We will update the documentation when Python3.14 is supported
8
8
(e.g., the ert Python package is not yet available via pip install in Python 3.14).
@@ -60,6 +60,13 @@ You also need to install:
60
60
61
61
* OPM Flow (https://opm-project.org, Release 2025.10 or current master branches)
62
62
63
+
Binary packages
64
+
+++++++++++++++
65
+
66
+
See the `downloading and installing <https://opm-project.org/?page_id=36>`_ OPM Flow online documentation for
67
+
instructions to install the binary packages in Ubuntu and Red Hat Enterprise Linux, and for other platforms which are
68
+
supported either via source builds or through running a virtual machine.
69
+
63
70
.. tip::
64
71
65
72
See the `ci_pycopm_ubuntu.yml <https://github.com/cssr-tools/pycopm/blob/main/.github/workflows/ci_pycopm_ubuntu.yml>`_ script
@@ -97,30 +104,40 @@ in the terminal the following lines (which in turn should build flow in the fold
97
104
98
105
.. _macOS:
99
106
107
+
Brew formula for macOS
108
+
++++++++++++++++++++++
109
+
For macOS, there are no available binary packages, so OPM Flow needs to be built from source. Recently, a formula to build flow using brew has
110
+
been added in `https://github.com/cssr-tools/homebrew-opm <https://github.com/cssr-tools/homebrew-opm>`_.
111
+
Then, you can try to install flow (v2025.10) by simply typing:
112
+
113
+
.. code-block:: console
114
+
115
+
brew install cssr-tools/opm/opm-simulators
116
+
117
+
You can check if the installation of OPM Flow succeded by typing in the terminal **flow \-\-help**.
118
+
119
+
.. tip::
120
+
See the actions in the `cssr-tools/homebrew-opm <https://github.com/cssr-tools/homebrew-opm/actions>`_ repository.
121
+
100
122
Source build in macOS
101
123
+++++++++++++++++++++
102
-
For macOS, there are no available binary packages, so OPM Flow needs to be built from source, in addition to the dune libraries
103
-
(see the `prerequisites <https://opm-project.org/?page_id=239>`_, which can be installed using macports or brew). For example,
104
-
with brew the prerequisites can be installed by:
124
+
If you would like to build the latest OPM Flow from the master branch, then you can first install the prerequisites using brew:
Copy file name to clipboardExpand all lines: docs/examples.html
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -95,12 +95,15 @@
95
95
96
96
<sectionid="examples">
97
97
<h1>Examples<aclass="headerlink" href="#examples" title="Link to this heading"></a></h1>
98
-
<p>For additional examples demonstrating the applicability of <strong>pycopm</strong>, see the <aclass="reference external" href="https://github.com/cssr-tools/pycopm/tree/main/tests">tests</a>.
99
-
<aclass="reference external" href="https://resinsight.org">ResInsight</a> and <aclass="reference external" href="https://github.com/cssr-tools/plopm">plopm</a> are used for the visualization of the results.</p>
98
+
<p>For additional examples demonstrating the applicability of <strong>pycopm</strong>, see the <aclass="reference external" href="https://github.com/cssr-tools/pycopm/tree/main/tests">tests</a>.</p>
99
+
<p><aclass="reference external" href="https://resinsight.org">ResInsight</a> and <aclass="reference external" href="https://github.com/cssr-tools/plopm">plopm</a> are used for the visualization of the results.</p>
100
100
<divclass="admonition note">
101
101
<pclass="admonition-title">Note</p>
102
-
<p>For macOS users, you could try to install ResInsight following <aclass="reference external" href="https://github.com/SoilRos/homebrew-OPM">this</a>. If you have issues
103
-
installing ResInsight, <aclass="reference external" href="https://www.paraview.org">ParaView</a> can be also used. However, you need to add the flag <strong>--enable-vtk-output=true</strong>
102
+
<p>There are binary packages for Linux and Windows to install Resinsight, see the <aclass="reference external" href="https://resinsight.org/releases/">ResInsight Documentation</a>. For macOS users, you could try to install it using <aclass="reference external" href="https://brew.sh">brew</a> by executing:</p>
<p>Then, you should be able to open resinsight by typing in the terminal <strong>resinsight</strong>. If you have issues installing ResInsight, <aclass="reference external" href="https://www.paraview.org">ParaView</a> can be also used. However, you need to add the flag <strong>--enable-vtk-output=true</strong>
<p>The following are the drogon model from <aclass="reference external" href="https://github.com/OPM/opm-tests/tree/master/drogon">opm-tests</a> and coarsened model generated using <strong>pycopm</strong>:</p>
118
+
<p>The following are the drogon model from <aclass="reference external" href="https://github.com/OPM/opm-tests/tree/master/drogon">opm-tests</a> and coarsened model generated using <strong>pycopm</strong> using ResInsight for the visualization:</p>
<liclass="toctree-l3"><aclass="reference internal" href="#source-build-in-linux-windows">Source build in Linux/Windows</a></li>
55
+
<liclass="toctree-l3"><aclass="reference internal" href="#brew-formula-for-macos">Brew formula for macOS</a></li>
54
56
<liclass="toctree-l3"><aclass="reference internal" href="#source-build-in-macos">Source build in macOS</a></li>
55
57
</ul>
56
58
</li>
@@ -91,7 +93,7 @@
91
93
92
94
<sectionid="installation">
93
95
<h1>Installation<aclass="headerlink" href="#installation" title="Link to this heading"></a></h1>
94
-
<p>The following steps work installing the dependencies in Ubuntu via apt-get or in macOS using brew or macports.
96
+
<p>The following steps work installing the dependencies in Ubuntu via apt-get or in macOS using <aclass="reference external" href="https://brew.sh">brew</a> or <aclass="reference external" href="https://www.macports.org">macports</a>.
95
97
While using package managers such as Anaconda, Miniforge, or Mamba might work, these are not tested.
96
98
The supported Python versions are 3.11 to 3.13. We will update the documentation when Python3.14 is supported
97
99
(e.g., the ert Python package is not yet available via pip install in Python 3.14).</p>
@@ -139,11 +141,17 @@ <h1>Installation<a class="headerlink" href="#installation" title="Link to this h
139
141
<ulclass="simple">
140
142
<li><p>OPM Flow (<aclass="reference external" href="https://opm-project.org">https://opm-project.org</a>, Release 2025.10 or current master branches)</p></li>
141
143
</ul>
144
+
<sectionid="binary-packages">
145
+
<h3>Binary packages<aclass="headerlink" href="#binary-packages" title="Link to this heading"></a></h3>
146
+
<p>See the <aclass="reference external" href="https://opm-project.org/?page_id=36">downloading and installing</a> OPM Flow online documentation for
147
+
instructions to install the binary packages in Ubuntu and Red Hat Enterprise Linux, and for other platforms which are
148
+
supported either via source builds or through running a virtual machine.</p>
142
149
<divclass="admonition tip">
143
150
<pclass="admonition-title">Tip</p>
144
151
<p>See the <aclass="reference external" href="https://github.com/cssr-tools/pycopm/blob/main/.github/workflows/ci_pycopm_ubuntu.yml">ci_pycopm_ubuntu.yml</a> script
145
152
for installation of OPM Flow (binary packages) and the pycopm package in Ubuntu.</p>
146
153
</div>
154
+
</section>
147
155
<sectionid="source-build-in-linux-windows">
148
156
<h3>Source build in Linux/Windows<aclass="headerlink" href="#source-build-in-linux-windows" title="Link to this heading"></a></h3>
149
157
<p>If you are a Linux user (including the Windows subsystem for Linux, see <aclass="reference external" href="https://learn.microsoft.com/en-us/windows/python/web-frameworks">this link</a>
@@ -172,25 +180,34 @@ <h3>Source build in Linux/Windows<a class="headerlink" href="#source-build-in-li
172
180
<p>You can create a .sh file (e.g., build_opm_mpi.sh), copy the previous lines, and run in the terminal <strong>source build_opm_mpi.sh</strong></p>
173
181
</div>
174
182
</section>
183
+
<sectionid="brew-formula-for-macos">
184
+
<spanid="macos"></span><h3>Brew formula for macOS<aclass="headerlink" href="#brew-formula-for-macos" title="Link to this heading"></a></h3>
185
+
<p>For macOS, there are no available binary packages, so OPM Flow needs to be built from source. Recently, a formula to build flow using brew has
186
+
been added in <aclass="reference external" href="https://github.com/cssr-tools/homebrew-opm">https://github.com/cssr-tools/homebrew-opm</a>.
187
+
Then, you can try to install flow (v2025.10) by simply typing:</p>
<p>You can check if the installation of OPM Flow succeded by typing in the terminal <strong>flow --help</strong>.</p>
192
+
<divclass="admonition tip">
193
+
<pclass="admonition-title">Tip</p>
194
+
<p>See the actions in the <aclass="reference external" href="https://github.com/cssr-tools/homebrew-opm/actions">cssr-tools/homebrew-opm</a> repository.</p>
195
+
</div>
196
+
</section>
175
197
<sectionid="source-build-in-macos">
176
-
<spanid="macos"></span><h3>Source build in macOS<aclass="headerlink" href="#source-build-in-macos" title="Link to this heading"></a></h3>
177
-
<p>For macOS, there are no available binary packages, so OPM Flow needs to be built from source, in addition to the dune libraries
178
-
(see the <aclass="reference external" href="https://opm-project.org/?page_id=239">prerequisites</a>, which can be installed using macports or brew). For example,
179
-
with brew the prerequisites can be installed by:</p>
198
+
<h3>Source build in macOS<aclass="headerlink" href="#source-build-in-macos" title="Link to this heading"></a></h3>
199
+
<p>If you would like to build the latest OPM Flow from the master branch, then you can first install the prerequisites using brew:</p>
<p>In addition, it is recommended to uprade and update your macOS to the latest available versions (the following steps have
184
-
worked for macOS Tahoe 26.0.1 with Apple clang version 17.0.0).
185
-
After the prerequisites are installed and the vpyocpm Python environment is created (see <aclass="reference internal" href="#vpycopm"><spanclass="std std-ref">Python package</span></a>),
186
-
then building OPM Flow can be achieved with the following bash lines:</p>
204
+
worked for macOS Tahoe 26.2.0 with Apple clang version 17.0.0). After the prerequisites are installed, then building OPM Flow
205
+
can be achieved with the following bash lines:</p>
0 commit comments