Skip to content

Instantly share code, notes, and snippets.

@ahmadia
Created February 1, 2012 11:19
Show Gist options
  • Save ahmadia/1716615 to your computer and use it in GitHub Desktop.
Save ahmadia/1716615 to your computer and use it in GitHub Desktop.
#!/bin/bash
# needs to be run as root
# download and install EPD and gfortran
mkdir /tmp/hpc3
cd /tmp/hpc3
curl -L -o e.zip http://bit.ly/hpc_3
unzip e.zip
#epd
hdiutil mount epd-7.2-2-macosx-x86_64.dmg
installer -pkg /Volumes/EPD-7.2/EPD.mpkg -target /
umount /Volumes/EPD-7.2
#gfortran
sudo tar -xvf gfortran-snwleo-intel-bin.tar.gz -C /.
export PATH=/Library/Frameworks/EPD64.framework/Versions/Current/bin:$PATH
# download and install PETSc
curl -O http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.2-p6.tar.gz
tar -xvf petsc-lite-3.2-p6.tar.gz
cd petsc-3.2-p6
./config/configure.py --with-fortran=0 --with-shared-libraries=1 --prefix=/opt/petsc
make all
make install
export PETSC_DIR="/opt/petsc"
# download and install petsc4py
easy_install petsc4py
# download and install clawpack, pyclaw, visclaw
mkdir /opt/clawpack
cd /opt/clawpack
git clone git://github.com/clawpack/pyclaw.git
git clone git://github.com/clawpack/riemann.git
git clone git://github.com/clawpack/visclaw.git
git clone git://github.com/clawpack/clawutil.git
# write startup source script
# user local install
#export CLAW=~/opt/clawpack
#cp -R /opt/clawpack $CLAW
#export RIEMANN=$CLAW/riemann
#export PYCLAW=$CLAW/pyclaw
#export VISCLAW=$CLAW/visclaw
#export PYTHONPATH=$PYCLAW/src:$RIEMANN/src/python:$VISCLAW/src/python:$CLAW/clawutil/src/python
#cd $PYCLAW
#nosetests -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment