#!/bin/sh #------------------------------------------------------------------------------ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | # \\ / A nd | www.openfoam.com # \\/ M anipulation | #------------------------------------------------------------------------------ # Copyright (C) 2018-2021 OpenCFD Ltd. #------------------------------------------------------------------------------ # License # This file is part of OpenFOAM, distributed under GPL-3.0-or-later. # # Script # makeHYPRE # # Description # Build script for HYPRE # # ---------------------------------------------- # NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE #------------------------------------------------------------------------------ if : # Run from third-party directory then cd "${0%/*}" || exit wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || { echo "Error (${0##*/}) : not located in \$WM_THIRD_PARTY_DIR" echo " Check your OpenFOAM environment and installation" exit 1 } fi . "${WM_THIRD_PARTY_DIR:?}"/etc/tools/ThirdPartyFunctions #------------------------------------------------------------------------------ # Obtain version from etc/config.sh file: _foamConfig hypre PACKAGE="${hypre_version:-none}" targetType=libso if nonStandardPlatforms # Possibly unreliable inherited values then unset HYPRE_ARCH_PATH fi #------------------------------------------------------------------------------ printVersions() { listPackageVersions hypre; exit 0; } printHelp() { cat</dev/null || true set -x && \ ./configure \ --prefix="$PKG_PREFIX" \ --disable-fortran \ --enable-shared \ $configOpt \ && make -j $WM_NCOMPPROCS \ && echo "Built: hypre" \ && make install \ && echo "Installed: $PACKAGE" ) || { echo "Error building: $PACKAGE" exit 1 } #------------------------------------------------------------------------------