This is my workflow when setting up Uintah/Wasatch on a Mac. This is as recent as OSX High Sierra.
- download and Install macports
- open up a terminal and install cmake using: sudo port install cmake
- sudo port install mpich
- you probably need to do: sudo port select --set mpi mpich-mp-fortran at the end (watch for messages from macports)
- sudo port install boost
- install Hypre (following the steps below):
- Download the latest hypre from the Hypre website: https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/software
- unzip/untar the file
- I like to put all my third party libraries under: /Users/tsaad/pkg
- cd pkg
- mkdir hypre-install
- cd hypre-2.11.2 (or whatever you just downloaded)
- cd src
- ./configure --prefix=/Users/tsaad/pkg/hypre-install/
- make install
- Download Uintah:
- git clone https://github.com/Uintah/Uintah.git uintah
- cd uintah
- mkdir opt
- emacs configure-script.line
../src/configure \
--with-boost=/opt/local \
--with-hypre=/Users/tsaad/pkg/hypre-install \
--enable-optimize='-O3' \
--with-zlib=/opt/local \
--with-mpi-include=/opt/local/include/mpich-mp \
--with-mpi-lib=/opt/local/lib/mpich-mp \
--enable-wasatch \
--enable-wasatch_3p \
--without-fortran
CC=gcc \
CXX=g++
- close the file (ctrl + x, ctrl + s)
- chmod +x configure-script.line
- ./configure-script.line
- make -jX where X is the number of cores you want to use to compile.
0 Comments