SAMRAI on Mac OS X
The current version of SAMRAI (v2.1.0) does not build/run on Mac OS X ``out of the box.'' Fortunately, it is not difficult to get SAMRAI running on Mac OS X. The following files are provided to help make this process easier (though probably not completely painless...).
- GCC 4.x
- SAMRAI-v2.1.0-MACOSX-GCC4-build-notes.txt: This file documents several changes/modifications made to the SAMRAI source code to get it to build on Mac OS X using GCC 4.
- build-SAMRAI-v2.1.0-MACOSX-GCC4.sh:
This shell script patches, configures, builds, and installs SAMRAI. It
automatically fixes several of problems with the default Makefiles
generated by the SAMRAI configure script.
Dependencies- strrep: simple Perl script to do string replacements.
- SAMRAI-v2.1.0-MACOSX-GCC4.patch:
Patch file for building SAMRAI on Mac OS X. Note that this patch does
not require any manual modifications to the patch file before
applying it. To apply the patch use the command:
patch -p0 < SAMRAI-v2.1.0-MACOSX-GCC4.patch
These fixes have been tested for the following hardware, OS, and compiler configurations:
- intel-mac/Mac OS 10.4.9/gcc, g++, gfortran
- GCC 3.x
- SAMRAI-v2.1.0-MACOSX-GCC3-build-notes.txt:
This file documents several changes/modifications made to the SAMRAI source
code to get it to build on Mac OS X using GCC 3.
- Daniel Thorpe has also written a very nice set of notes for building SAMRAI on Mac OS X Tiger (10.4). He also has some notes for building SAMRAI using Xcode.
- build-SAMRAI-v2.1.0-MACOSX-GCC3.sh:
This shell script builds and configures SAMRAI. It also fixes several of
problems with the default Makefiles generated by the SAMRAI configure
script.
Dependencies- strrep: simple Perl script to do string replacements.
- SAMRAI-v2.1.0-MACOSX-GCC3.patch:
Patch file for building SAMRAI on Mac OS X. Note that to use this
patch, you will need to first manually modify it so that the path of
the mpi.h header file reflects the configuration of your system. To
apply the patch use the command:
patch -p0 < SAMRAI-v2.1.0-MACOSX-GCC4.patch
These fixes have been tested for the following compiler configurations:
- gcc, g++, xlf
- gcc, g++, g77
- SAMRAI-v2.1.0-MACOSX-GCC3-build-notes.txt:
This file documents several changes/modifications made to the SAMRAI source
code to get it to build on Mac OS X using GCC 3.