Skip to content

Commit

Permalink
Merge c441c59 into 40a7249
Browse files Browse the repository at this point in the history
  • Loading branch information
ketch committed Dec 18, 2014
2 parents 40a7249 + c441c59 commit f6a41c3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 110 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ script:
- if [[ "${TEST_PACKAGE}" == "petclaw" ]]; then
mpirun -n 4 ${CLAWPACK}/petsc4py_stack/bin/nosetests -v;
fi
# Run doctests
- cd ../src/pyclaw
- nosetests --first-pkg-wins --with-doctest --exclude=example --exclude=limiters --exclude=sharpclaw --exclude=io

after_success:
- coveralls
Expand Down
51 changes: 25 additions & 26 deletions cleanup_examples.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@

#
# Cleans up by deleting object files, executable, and _output directory.
# Use after run_examples to clean up stuff not needed on webpages.

import os,sys,glob
import shutil

examples_dir = os.path.abspath('./examples')
print "Will remove all _output, _plots, and build directories from ",examples_dir
ans = raw_input("Ok? ")
if ans.lower() not in ['y','yes']:
print "Aborting."
sys.exit()
if __name__ == "__main__":
#
# Cleans up by deleting object files, executable, and _output directory.
# Use after run_examples to clean up stuff not needed on webpages.
examples_dir = os.path.abspath('./examples')
print "Will remove all _output, _plots, and build directories from ",examples_dir
ans = raw_input("Ok? ")
if ans.lower() not in ['y','yes']:
print "Aborting."
sys.exit()

os.chdir(examples_dir)
exdirlist = []
for (dirpath, subdirs, files) in os.walk('.'):
currentdir = os.path.abspath(os.getcwd())
os.chdir(os.path.abspath(dirpath))

print 'In directory ',dirpath

os.chdir(examples_dir)
exdirlist = []
for (dirpath, subdirs, files) in os.walk('.'):
currentdir = os.path.abspath(os.getcwd())
os.chdir(os.path.abspath(dirpath))

print 'In directory ',dirpath

if os.path.isdir('_output'):
shutil.rmtree('./_output')
if os.path.isdir('_plots'):
shutil.rmtree('./_plots')
if os.path.isdir('build'):
shutil.rmtree('./build')

os.chdir(currentdir)
if os.path.isdir('_output'):
shutil.rmtree('./_output')
if os.path.isdir('_plots'):
shutil.rmtree('./_plots')
if os.path.isdir('build'):
shutil.rmtree('./build')

os.chdir(currentdir)
82 changes: 0 additions & 82 deletions src/pyclaw/limiters/weno/codegen.py

This file was deleted.

Empty file modified src/pyclaw/solution.py
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions src/pyclaw/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class Solver(object):
Solver initialization takes one argument -- a Riemann solver:
>>> from clawpack import pyclaw, riemann
>>> solver = pyclaw.ClawSolver2D(riemann.rp2_euler_4wave)
>>> solver = pyclaw.ClawSolver2D(riemann.euler_4wave_2D)
After which solver options may be set.
after which solver options may be set.
It is necessary to set the boundary conditions (for q, and
for aux if an aux array is used):
Expand Down
Empty file modified src/pyclaw/state.py
100755 → 100644
Empty file.

0 comments on commit f6a41c3

Please sign in to comment.