|
| 1 | +#> Simulations using MFC depend upon Python, MPI, |
| 2 | +#> and FFTW. |
| 3 | + |
| 4 | +## Python ## |
| 5 | +If you do not have Python, it can be installed via |
| 6 | +Homebrew on OSX (https://www.brew.sh) as: |
| 7 | + $$ brew install python |
| 8 | +or compiled via your favorite package manager on Unix |
| 9 | +systems. |
| 10 | + |
| 11 | +## MPI ## |
| 12 | +An MPI fortran compiler is required for all systems. |
| 13 | +If you do not have one, Homebrew can take care of this |
| 14 | +on OSX: |
| 15 | + $$ brew install open-mpi |
| 16 | +or compiled via another package manager on Unix systems. |
| 17 | + |
| 18 | +## FFTW ## |
| 19 | +If you already have FFTW compiled: |
| 20 | + - Specify the location of your FFTW library and |
| 21 | + include files in Makefile.user (fftw_lib_dir and |
| 22 | + fftw_include_dir) |
| 23 | + |
| 24 | +If you do not have FFTW compiler, the library and |
| 25 | +installer are included in this package. Just: |
| 26 | + $$ cd installers |
| 27 | + $$ ./install_fftw.sh |
| 28 | + |
| 29 | +#> Post-processing of parallel data files is not required, |
| 30 | +#> but can indeed be handled with the MFC. For this, HDF5 |
| 31 | +#> and Silo must be installed |
| 32 | + |
| 33 | +On OSX, a custom tap for Silo is included in the installers |
| 34 | +directory. You can use it via |
| 35 | + $$ cd lib |
| 36 | + $$ brew install silo.rb |
| 37 | +This will install silo and its dependences (including HDF5) |
| 38 | +in their usual locations (/usr/local/lib and |
| 39 | +/usr/local/include) |
| 40 | + |
| 41 | +On Unix systems, you can install via a package manager or |
| 42 | +from source. On CentOS (also Windows 7), HDF5 |
| 43 | +binaries can be found at |
| 44 | + https://support.hdfgroup.org/ftp/HDF5/current18/bin/ |
| 45 | +Untar this archive in your intended location via |
| 46 | + $$ tar -zxf [your HDF5 archive] |
| 47 | + |
| 48 | +Silo should be downloaded at |
| 49 | + https://wci.llnl.gov/simulation/computer-codes/silo/downloads |
| 50 | +then |
| 51 | + $$ tar -zxf [your Silo archive] |
| 52 | + $$ cd [your Silo archive] |
| 53 | + $$ ./configure --prefix=[target installation directory] --enable-pythonmodule --enable-optimization --disable-hzip --disable-fpzip --enableportable-binary FC=mpif90 F77=mpif77 -with-hdf5=[your hdf5 directory]/include,/[your hdf5 directory]/lib --disable-silex |
| 54 | + $$ make |
| 55 | + $$ make install |
| 56 | +then add this line to your ~/.bash_profile |
| 57 | + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/[your silo directory]/lib:/[your hdf5 directory]/lib |
| 58 | +and |
| 59 | + $$ source ~/.bash_profile |
| 60 | + |
| 61 | +You will then need to modify silo_lib_dir and silo_include_dir in |
| 62 | +Makefile.user to point to your silo directory |
0 commit comments