Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions firedrake/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ def coordinates(self, value):

raise AttributeError(message)

@cached_property
@cached_property_until(lambda self: self.coordinates.dat.dat_version)
def cell_sizes(self):
"""A :class:`~.Function` in the :math:`P^1` space containing the local mesh size.

Expand All @@ -2463,10 +2463,11 @@ def clear_cell_sizes(self):

Use this if you move the mesh.
"""
try:
del self.cell_size
except AttributeError:
pass
warnings.warn(
"`clear_cell_sizes` is deprecated and will be removed in a future release. "
"The `cell_sizes` attribute is cleared automatically when mesh coordinates change. ",
FutureWarning,
)

@property
def tolerance(self):
Expand Down
Loading