Skip to content

config mpi.sh

Donna Calhoun edited this page Aug 4, 2019 · 10 revisions

Cut and paste the code below and save it as $FCLAW/config-mpi.sh.

#!/usr/bin/env bash

# Modify as needed
../forestclaw/configure \
    --enable-mpi \
    --enable-clawpack \
    --without-blas \
    --enable-debug \
    CC=mpicxx \
    CFLAGS="-O2 -Wall" \
    CXX=mpicxx \
    CXXFLAGS="-O2 -Wall" \
    F77=gfortran \
    FC=gfortran \
    FFLAGS="-O2 -cpp" \
    --disable-shared

#  use these additional commands if you build p4est separately.
#  --with-p4est=$PATH_TO_P4EST/p4est-build-mpi/local
#  --with-sc=$PATH_TO_P4EST/p4est-build-mpi/local

Alternatively, you can download this file here, or download it directly using

$ cd $FCLAW
$ wget https://raw.githubusercontent.com/wiki/ForestClaw/forestclaw/files/config-mpi.sh

Make this file executable.

$ chmod u+x config-mpi.sh

Configure ForestClaw.

$ cd forestclaw-build
$ ../config-mpi.sh

Build ForestClaw.

$ chmod u+x config-mpi.sh

Configure ForestClaw.

$ cd forestclaw-build
$ ../config-mpi.sh