#!/bin/sh
# Copyright (C) 2020 OpenCFD Ltd.
# SPDX-License-Identifier: (GPL-3.0+)

# Report the openmpi installation path
# Forwards to OpenFOAM bin/tools/create-mpi-config

# ---------------------------------------------------------------------------

# The debian/ directory is the parent directory
## debianDir="${0%/*}/.."

# The project directory is one above debian/
projectDir="${0%/*}/../.."

arch_path=$("$projectDir"/bin/tools/create-mpi-config -query-openmpi 2>/dev/null)

echo "${arch_path:-/usr}"

# -----------------------------------------------------------------------------
