Skip to content

Commit f36aeac

Browse files
authored
Merge pull request #17 from RemDelaporteMathurin/exodus
Exodus support
2 parents b899ed3 + dbf064b commit f36aeac

6 files changed

Lines changed: 797 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dev = ["pdbpp", "ipython", "mypy", "ruff"]
2626
h5py = ["h5py"]
2727
pyvista = ["pyvista"]
2828
xdmf = ["h5py"]
29+
exodus = ["netcdf4"]
2930
docs = [
3031
"jupyter-book<2.0.0",
3132
"ipyparallel",

src/io4dolfinx/backends/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,5 +433,9 @@ def get_backend(backend: str) -> IOBackend:
433433
from .vtkhdf import backend as VTKDHFInterface
434434

435435
return VTKDHFInterface
436+
elif backend == "exodus":
437+
from .exodus import backend as EXODUSInterface
438+
439+
return EXODUSInterface
436440
else:
437441
return import_module(backend)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from . import backend
2+
3+
__all__ = ["backend"]

0 commit comments

Comments
 (0)