-
Notifications
You must be signed in to change notification settings - Fork 23
Building and installing ForestClaw
For the instructions below, we assume that you have an environment variable FCLAW
that points to a super-directory containing your ForestClaw source code and build directories.
Example : Create the FCLAW
environment variable in bash that points to a super-directory where you will clone the ForestClaw repository
$ cd $ mkdir fclaw-install $ cd fclaw-install $ export FCLAW=$(pwd)
The FCLAW
variable is not needed to build or run ForestClaw, but is used here to conveniently describe build instructions.
-
Clone the ForestClaw source code
$ cd $FCLAW $ git clone [email protected]:ForestClaw/forestclaw.git
-
Clone and initialize
p4est
andsc
submodules$ cd forestclaw $ git submodule init $ git submodule update
-
Run
bootstrap
to create configuration files$ ./bootstrap
-
Create build directory
$ cd .. # or cd $FCLAW $ mkdir forestclaw-build $ cd forestclaw-build
-
Configure the build. For this example, we will configure so that the suite of Clawpack examples is built. To build the GeoClaw example, see
GeoClaw examples
.-
Configure for a serial build (no MPI required)
$ ../forestclaw/configure --enable-clawpack
-
Configure for a parallel build (requires MPI)
$ ../forestclaw/configure --enable-mpi ---enable-clawpack
A more complete configuration file is here.
-
-
Build ForestClaw
$ make -j4 V=0 # uses four processors, no verbose output
-
Install ForestClaw
$ make install
This will install executables in the
$FCLAW/forestclaw-build/local/bin
directory.
ForestClaw | Copyright (c) 2012-2022 Carsten Burstedde, Donna Calhoun