diff --git a/doc/interop.rst b/doc/interop.rst index 0f6b00039b80c008f225f9ad9c083842b57d22c7..b07ac095a8a3769f06fc2fd0b2202fcf0c40ee41 100644 --- a/doc/interop.rst +++ b/doc/interop.rst @@ -1,7 +1,8 @@ -interop -======= +Interoperability with Other Discretization Packages +=================================================== -Interfacing with data outside of :mod:`meshmode`. +Functionality in this subpackage helps import and export data to/from other +pieces of software, typically PDE solvers. Firedrake @@ -30,7 +31,7 @@ Converting between :mod:`firedrake` and :mod:`meshmode` is in general straightforward. Some language is different: * In a mesh, a :mod:`meshmode` "element" is a :mod:`firedrake` "cell" -* A :mod:`meshmode` :class:`Discretization` is a :mod:`firedrake` +* A :class:`meshmode.Discretization` is a :mod:`firedrake` :class:`WithGeometry`, usually created by calling the function :func:`firedrake.functionspace.FunctionSpace` and referred to as a "function space" diff --git a/meshmode/interop/firedrake/connection.py b/meshmode/interop/firedrake/connection.py index e2f202a0a836d2aecc2eb33acb96add1f9201832..a73ec5ef2022d6d5c12aa215ace34ff2042052be 100644 --- a/meshmode/interop/firedrake/connection.py +++ b/meshmode/interop/firedrake/connection.py @@ -380,3 +380,5 @@ class ToFiredrakeConnection: """ # }}} + +# vim: foldmethod=marker diff --git a/meshmode/interop/firedrake/mesh.py b/meshmode/interop/firedrake/mesh.py index 49e87408da0a9ab7684bc33de5d28eabcfe3221e..1718fb4efeb17e7aaa27c3a54aa61302da2a0989 100644 --- a/meshmode/interop/firedrake/mesh.py +++ b/meshmode/interop/firedrake/mesh.py @@ -594,3 +594,5 @@ def export_mesh_to_firedrake(mesh, group_nr=None, comm=None): return fd_mesh.Mesh(coords, reorder=False) # }}} + +# vim: foldmethod=marker diff --git a/meshmode/interop/firedrake/reference_cell.py b/meshmode/interop/firedrake/reference_cell.py index 153c566795f38c77a3db053d643209fddb093aca..a102a9390a88f351794687f56d56fd1cc9da9ab9 100644 --- a/meshmode/interop/firedrake/reference_cell.py +++ b/meshmode/interop/firedrake/reference_cell.py @@ -136,3 +136,5 @@ def get_finat_element_unit_nodes(finat_element): return unit_nodes # }}} + +# vim: foldmethod=marker diff --git a/test/test_firedrake_interop.py b/test/test_firedrake_interop.py index 8bafdadf4e28ec1a29da6a87b861c0e656b175bc..3f37e4affafc0a25e470112e73cbeee7fbc4dabd 100644 --- a/test/test_firedrake_interop.py +++ b/test/test_firedrake_interop.py @@ -239,3 +239,5 @@ def test_vector_idempotency(ctx_factory, fdrake_mesh, check_idempotency(fdrake_connection, fdrake_unique) # }}} + +# vim: foldmethod=marker