Skip to content

Commit 40e1f82

Browse files
committed
Merge pull request #538 from ketch/bugfix_petsc_plotting
Enable plotting from PETSc output files with serial Solution object.
2 parents 3aafbe5 + f198e9f commit 40e1f82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pyclaw/solution.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ def get_read_func(self, file_format):
349349
return io.ascii.read
350350
elif file_format in ('hdf','hdf5'):
351351
return io.hdf5.read
352+
elif file_format == 'petsc':
353+
from clawpack.petclaw import io
354+
return io.petsc.read
352355
else:
353356
raise ValueError("File format %s not supported." % file_format)
354357

0 commit comments

Comments
 (0)