diff --git a/BUILD.md b/BUILD.md index ff5e325..179e4fc 100644 --- a/BUILD.md +++ b/BUILD.md @@ -420,6 +420,7 @@ you may have additional hurdles to using the newest versions of clang. | [CGAL][page CGAL] | [download][link CGAL] | [FFTW][page FFTW] | [download][link FFTW] | [PETSC][page PETSC] | [download][link PETSC] +| [HYPRE][page HYPRE] | [repo][repo HYPRE] or [download][link HYPRE] | [ADF/CGNS][page CGNS], ccm | [link ccmio][link ccmio] | gperftools | [repo][repo gperftools] or [download][link gperftools] @@ -565,6 +566,10 @@ easier to use `grep` and find the relevant pages and links. [page petsc]: https://www.mcs.anl.gov/petsc/ [link petsc]: http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.13.2.tar.gz +[page hypre]: https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/ +[repo hypre]: https://github.com/hypre-space/hypre/ +[link hypre]: https://github.com/hypre-space/hypre/archive/v2.19.0.tar.gz + [page cgns]: http://cgns.github.io/ [link ccmio]: http://portal.nersc.gov/project/visit/third_party/libccmio-2.6.1.tar.gz (check usage conditions) [altlink ccmio]: http://portal.nersc.gov/svn/visit/trunk/third_party/libccmio-2.6.1.tar.gz (check usage conditions) diff --git a/makeHYPRE b/makeHYPRE index 5b6dbbc..9667b9c 100755 --- a/makeHYPRE +++ b/makeHYPRE @@ -20,35 +20,7 @@ # ---------------------------------------------- # NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE #------------------------------------------------------------------------------ -# Dynamic library ending (default is .so) -[ "$(uname -s)" = Darwin ] && EXT_SO=.dylib || EXT_SO=.so -# Short-circuit test for an installation -if [ "$1" = "-test" ] -then - [ "$#" -eq 2 ] || { echo "${0##*/} -test : needs 1 argument"; exit 1; } - dir="${2%/}" # <- HYPRE_ARCH_PATH - if [ -d "$dir/include" ] - then - for lib in \ - $FOAM_EXT_LIBBIN/libhypre$EXT_SO \ - $dir/lib/libhypre.a \ - $dir/lib/libhypre$EXT_SO \ - $dir/lib$WM_COMPILER_LIB_ARCH/libhypre.a \ - $dir/lib$WM_COMPILER_LIB_ARCH/libhypre$EXT_SO \ - ; - do - if [ -r "$lib" ] - then - echo " hypre include: $dir/include" - echo " hypre library: ${lib%/*}" - exit 0 - fi - done - fi - exit 2 -fi -#------------------------------------------------------------------------------ # Run from third-party directory only cd "${0%/*}" || exit wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || { @@ -56,16 +28,11 @@ wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || { echo " Check your OpenFOAM environment and installation" exit 1 } -[ -n "$FOAM_EXT_LIBBIN" ] || { - echo "Error (${0##*/}) : \$FOAM_EXT_LIBBIN not set" - echo " Check your OpenFOAM environment and installation" - exit 1 -} . etc/tools/ThirdPartyFunctions #------------------------------------------------------------------------------ _foamConfig hypre -hyprePACKAGE=${hypre_version:-hypre-system} +hyprePACKAGE="${hypre_version:-hypre-system}" targetType=libso #------------------------------------------------------------------------------ @@ -74,7 +41,7 @@ usage() { while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat</dev/null ./configure \ - --prefix=$HYPRE_ARCH_PATH \ + --prefix="$HYPRE_ARCH_PATH" \ --disable-fortran \ --enable-shared \ $configOpt \ diff --git a/makePETSC b/makePETSC index 5988cc8..0cac627 100755 --- a/makePETSC +++ b/makePETSC @@ -20,35 +20,7 @@ # ---------------------------------------------- # NO USER-CONFIGURABLE SETTINGS WITHIN THIS FILE #------------------------------------------------------------------------------ -# Dynamic library ending (default is .so) -[ "$(uname -s)" = Darwin ] && EXT_SO=.dylib || EXT_SO=.so -# Short-circuit test for an installation -if [ "$1" = "-test" ] -then - [ "$#" -eq 2 ] || { echo "${0##*/} -test : needs 1 argument"; exit 1; } - dir="${2%/}" # <- *_ARCH_PATH - if [ -d "$dir/include" ] - then - for lib in \ - $FOAM_EXT_LIBBIN/libpetsc$EXT_SO \ - $dir/lib/libpetsc.a \ - $dir/lib/libpetsc$EXT_SO \ - $dir/lib$WM_COMPILER_LIB_ARCH/libpetsc.a \ - $dir/lib$WM_COMPILER_LIB_ARCH/libpetsc$EXT_SO \ - ; - do - if [ -r "$lib" ] - then - echo " petsc include: $dir/include" - echo " petsc library: ${lib%/*}" - exit 0 - fi - done - fi - exit 2 -fi -#------------------------------------------------------------------------------ # Run from third-party directory only cd "${0%/*}" || exit wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || { @@ -56,38 +28,44 @@ wmakeCheckPwd "$WM_THIRD_PARTY_DIR" 2>/dev/null || { echo " Check your OpenFOAM environment and installation" exit 1 } -[ -n "$FOAM_EXT_LIBBIN" ] || { - echo "Error (${0##*/}) : \$FOAM_EXT_LIBBIN not set" - echo " Check your OpenFOAM environment and installation" - exit 1 -} . etc/tools/ThirdPartyFunctions #------------------------------------------------------------------------------ +_foamConfig hypre _foamConfig petsc -petscPACKAGE=${petsc_version:-petsc-system} +hyprePACKAGE="${hypre_version:-hypre-none}" +petscPACKAGE="${petsc_version:-petsc-system}" targetType=libso +# Should be possible to build with download, but seems to fail +# hypreURL="https://github.com/hypre-space/hypre/archive/v2.14.0.tar.gz" +unset hypreURL + #------------------------------------------------------------------------------ usage() { exec 1>&2 while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat<