-
Notifications
You must be signed in to change notification settings - Fork 25
Using the new repos
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 need to set several environment variables to use the code. Unfortunately, there are two ways to do this, based on whether you are using a Bourne-compatible shell such as sh, bash, or zsh; or a C-shell derivative such as csh or tcsh. If you do not know which shell you are using, you can determine this with:
echo $SHELLYou will probably want to organize all the packages under one directory:
mkdir clawpack
cd clawpacksh/bash/zsh:
export CLAW=`pwd`csh/tcsh:
setenv CLAW `pwd`git clone git@github.com:clawpack/pyclaw.git
git clone git@github.com:clawpack/riemann.gitsh/bash/zsh:
export RIEMANN=$CLAW/riemann
export PYCLAW=$CLAW/pyclawcsh/tcsh:
setenv RIEMANN $CLAW/riemann
setenv PYCLAW $CLAW/pyclawsh/bash/zsh:
export PYTHONPATH=$PYCLAW/src/:$RIEMANN:$PYTHONPATHcsh/tcsh:
setenv PYTHONPATH "$PYCLAW/src/:$RIEMANN:$PYTHONPATH"For PetClaw, you must also have PETSc and petsc4py installed. See their websites for more information.
$ cd $PYCLAW
$ nosetestsIf any tests fail please report them to the developers immediately!
For PyClaw, we do not develop on the master branch, but on a 'dev' branch. To get this, do the following:
$ cd $PYCLAW
$ git checkout -b dev origin/devTo push changes you'll generally want to do
$ git push origin dev