Skip to content

Instantly share code, notes, and snippets.

View memmett's full-sized avatar

Matthew Emmett memmett

View GitHub Profile
extends:
- name: hashstack
urls: ['https://github.com/hashdist/hashstack.git']
key: 'git:3e5d3f3ecf6bd65de264ed83190b6fa48d110677'
file: debian.yaml
parameters:
fortran: true
packages:
#
# render vorticity
#
from mpi4py import MPI
from yt.pmods import *
import os
import yt
@memmett
memmett / boxclaw-osx.txt
Last active August 29, 2015 14:06
PyBoxLib and BoxClaw on OSX 10.8.5
Anaconda with GCC 4.9
=====================
On a fresh OSX 10.8.5 MacBook Pro:
- Install homebrew
- Install gcc
brew install gcc
@memmett
memmett / fcast.py
Created January 6, 2012 16:27
Generate an F90 module to cast complex arrays to (flat) real arrays
"""Generate an F90 module to cast various Fortran arrays to flat real
arrays."""
from itertools import product
kinds = [ '8' ]
types = [ 'real', 'complex' ]
dims = range(1,7)
module = '''\
@memmett
memmett / build_instructions.txt
Last active September 26, 2015 06:57
Various build instructions
GCC on orga
===========
First, download and install GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Also ISL.
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
unset LD_LIBRARY_PATH
unset CXXFLAGS