Skip to content

Commit

Permalink
mesh: make Mesh into a dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Apr 26, 2024
1 parent 7a3ccb2 commit e7e4a29
Show file tree
Hide file tree
Showing 5 changed files with 543 additions and 274 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"arraycontext": ("https://documen.tician.de/arraycontext", None),
"fenics": ("https://fenics.readthedocs.io/projects/fiat/en/latest", None),
"FInAT": ("https://finat.github.io/FInAT/", None),
"firedrake": ("https://firedrakeproject.org", None),
"firedrake": ("https://www.firedrakeproject.org", None),
"gmsh_interop": ("https://documen.tician.de/gmsh_interop", None),
"h5py": ("https://docs.h5py.org/en/stable", None),
"loopy": ("https://documen.tician.de/loopy", None),
Expand Down
3 changes: 1 addition & 2 deletions meshmode/discretization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ def copy(self,
group_factory: Optional[ElementGroupFactory] = None,
real_dtype: Optional[np.dtype] = None) -> "Discretization":
"""Creates a new object of the same type with all arguments that are not
*None* replaced. The copy is not recursive (e.g. it does not call
:meth:`meshmode.mesh.Mesh.copy`).
*None* replaced. The copy is not recursive.
"""

return type(self)(
Expand Down
Loading

0 comments on commit e7e4a29

Please sign in to comment.