Required and Optional Third-Party Libraries

General notes

Before starting

Plan of attack

Where possible, use a package manager to install available third-party libraries.

First, download and install the serial libraries:

The build process for HDF5 and Silo follows the configure, make, make install paradigm. Boost does not need to be installed and can simply be unpacked in place. IBAMR generally supports the latest versions of HDF5, Silo, and Boost, although earlier versions are likely to work.

Next, download and install PETSc. Instructions on building PETSc are available from: http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html. PETSc’s build system can also automatically install MPI, BLAS/LAPACK, and hypre. If you have PETSc build hypre, PETSc will install hypre in the directory $PETSC_DIR/$PETSC_ARCH. IBAMR is currently used and tested with PETSc 3.13.X and 3.17.X.

Next, if you do not have PETSc build hypre, download and install hypre. IBAMR generally supports the latest versions hypre (currently version 2.27.0), although earlier versions are likely to work.

Finally, download SAMRAI. IBAMR uses SAMRAI 2.4.4. Before building SAMRAI, it is necessary to patch SAMRAI using the patch file ibamr-samrai-fixes.patch: To unpack and patch SAMRAI, do:

tar xvfz /path/to/SAMRAI-v2.4.4.tar.gz
tar xvfz /path/to/SAMRAI-docs-v2.4.4.tar.gz
cd SAMRAI
./source/scripts/includes --link
patch -p1 </path/to/samrai-2.4.4-patch-ibamr-0.13.0.patch

Next, configure and build SAMRAI. SAMRAI must be configured with the flag --enable-implicit-template-instantiation. SAMRAI also must be directed to link with your HDF5 installation; linking with other packages is optional.

Getting help

If you experience difficulties building any of the required third-party libraries, please attempt to contact the maintainers of those libraries, or request help through the IBAMR Users or IBAMR Developers Google Groups.