Options for installing Clawpack Fortran codes

This page describes ways to download and “install” Clawpack in a way that the Fortran versions of the PDE solvers (Classic, AMRClaw, and GeoClaw) can be used, along with Python codes that support these solvers, including the visualization tools in VisClaw.

If you plan to use the PDE solvers directly from PyClaw, please see Installing Clawpack for other options. If you are not sure, see Which Clawpack solver should I use?

tar file

You can download the most recent (or certain previous versions) of Clawpack as a tar file. After untarring this, you can set environment variables to point to this version.

Download a tar file from one of these sources:

After downloading a tar file you can do, e.g.

tar -xzf clawpack-v5.8.1.tar.gz
cd clawpack-v5.8.1
export CLAW=/full/path/to/clawpack-v5.8.1  # in bash

The last command sets an environment variable when using the bash shell. The syntax may be different in other shells. Replace /full/path/to with the appropriate full path.

You must also add $CLAW to your PYTHONPATH environment variable, see Python path.

git clone

You can clone the git repositories from https://github.com/clawpack. This is particularly useful if you want the latest development version or a branch that is not in a release yet, and/or if you plan to contribute to the code yourself via a pull request. See Developers’ Guide for more details, but the basic commands are:

git clone git://github.com/clawpack/clawpack.git
cd clawpack
git checkout v5.8.1     # or an older version; `git tag -l` to list options
git submodule init      # for repositories pyclaw, clawutil, visclaw, etc.
git submodule update    # clones all the submodule repositories
export CLAW=/full/path/to/clawpack    # in bash

The last command sets an environment variable when using the bash shell. The syntax may be different in other shells. Replace /full/path/to with the appropriate full path.

You must also add $CLAW to your PYTHONPATH environment variable, see Python path.

Components: See Clawpack components for a list of what is generally included under the top level clawpack directory when using any of these approaches. (And what is not included, e.g. the Clawpack Applications repository.)

Next steps:

Once Clawpack is installed, you can get started: