Skip to content
Snippets Groups Projects
Commit 0743dc99 authored by David Seus's avatar David Seus
Browse files

put SolutionFile class in an own file

parent 60f9646c
Branches
Tags
No related merge requests found
import dolfin as df
# https://github.com/geo-fluid-dynamics/phaseflow-fenics
# adapted from Lucas Ostrowski
class SolutionFile(df.XDMFFile):
"""
This class extends `df.XDMFFile` with some minor changes for convenience.
"""
def __init__(self, mpicomm, filepath):
df.XDMFFile.__init__(self, mpicomm, filepath)
self.parameters["functions_share_mesh"] = True
self.parameters["flush_output"] = False
self.path = filepath # Mimic the file path attribute from a `file` returned by `open`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment