Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/ci_brew_opm-flow_resinsight_macos.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Install OPM Flow and ResInsight in macOS using brew

on:
push:
branches:
- main
pull_request:

jobs:
Expand All @@ -26,17 +23,18 @@ jobs:
- name: Tap local Homebrew repo (PR version)
run: |
brew tap cssr-tools/opm $PWD

- name: Install OPM Flow (from PR)
run: |
brew install opm-simulators
which flow
brew trust cssr-tools/opm

- name: Install ResInsight (from PR)
run: |
brew install resinsight
brew install resinsight -y
which resinsight

- name: Install OPM Flow (from PR)
run: |
brew install opm-simulators -y
which flow

- name: Run OPM Flow (parallel)
run: |
curl -O https://raw.githubusercontent.com/OPM/opm-tests/master/spe1/SPE1CASE1.DATA
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

# Installing ResInsight and OPM Flow with support for mpirun in macOS using brew

This repository uses [_brew_](https://brew.sh) to build [_ResInsight_](https://resinsight.org) (v2025.12.0) and [_OPM Flow_](https://opm-project.org/?page_id=19) (v2026.04) in macOS Tahoe in GitHub Actions, showing the status and details of the build in the [_Actions_](https://github.com/cssr-tools/homebrew-opm/actions).
This repository uses [_brew_](https://brew.sh) to build [_ResInsight_](https://resinsight.org) (v2026.06.1) and [_OPM Flow_](https://opm-project.org/?page_id=19) (v2026.04) in macOS Tahoe in GitHub Actions, showing the status and details of the build in the [_Actions_](https://github.com/cssr-tools/homebrew-opm/actions).
See [_this script_](https://github.com/cssr-tools/homebrew-opm/blob/main/.github/workflows/ci_brew_opm-flow_resinsight_macos.yml) that is run in GitHub actions.

```bash
brew install cssr-tools/opm/opm-simulators
brew install cssr-tools/opm/resinsight
brew tap cssr-tools/opm
brew trust cssr-tools/opm
brew install cssr-tools/opm/opm-simulators -y
brew install cssr-tools/opm/resinsight -y
```

After you execute the above lines, you can check if the installation of OPM Flow succeded by typing in the terminal `flow --help`, and ResInsight is launched by typing `resinsight`.
159 changes: 0 additions & 159 deletions open-zgy.patch

This file was deleted.

2 changes: 2 additions & 0 deletions opm-common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class OpmCommon < Formula
depends_on "pybind11"

def install
inreplace buildpath/"opm/input/eclipse/EclipseState/InitConfig/Equil.cpp", "#include <fmt/core.h>", "#include <fmt/format.h>"
inreplace buildpath/"opm/input/eclipse/Schedule/Group/GuideRate.cpp", "#include <fmt/core.h>", "#include <fmt/format.h>"
mkdir "build" do
system "cmake", "..", *std_cmake_args,
"-DWITH_NDEBUG=1",
Expand Down
Loading
Loading