Skip to content

Commit

Permalink
Merge pull request #538 from ketch/bugfix_petsc_plotting
Browse files Browse the repository at this point in the history
Enable plotting from PETSc output files with serial Solution object.
  • Loading branch information
ketch committed May 10, 2016
2 parents 3aafbe5 + f198e9f commit 40e1f82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyclaw/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def get_read_func(self, file_format):
return io.ascii.read
elif file_format in ('hdf','hdf5'):
return io.hdf5.read
elif file_format == 'petsc':
from clawpack.petclaw import io
return io.petsc.read
else:
raise ValueError("File format %s not supported." % file_format)

Expand Down

0 comments on commit 40e1f82

Please sign in to comment.