Skip to content

Using the new repos

ketch edited this page Apr 25, 2011 · 17 revisions

Here are some brief instructions for getting started with the new repos. For now this just refers to PyClaw and PetClaw, as well as the 'riemann' repo. Others will be added as they appear.

You will probably want to organize all these packages under one directory; make that and point your CLAW environment variable to it.

Next, clone the repositories

$ cd $CLAW
$ git clone git@github.com:clawpack/pyclaw.git
$ git clone git@github.com:clawpack/petclaw.git
$ git clone git@github.com:clawpack/riemann.git

Now set your environment variables. Here are the C-shell commands:

setenv RIEMANN $CLAW/riemann
setenv PYCLAW $CLAW/pyclaw
setenv PETCLAW $CLAW/petclaw

Set your PYTHONPATH to point to the appropriate directories:

setenv PYTHONPATH "$PYCLAW/src/:$PETCLAW"

For PetClaw, you must also have PETSc and petsc4py installed. Once that is complete, you can try

$ cd $PETCLAW
$ nosetests

to verify your installation.

Clone this wiki locally