Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bubble shear on the fly adapt demo #145

Merged
merged 14 commits into from
Sep 17, 2024
12 changes: 6 additions & 6 deletions animate/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ def __init__(self, function_space, *args, **kwargs):
if isinstance(fs.dof_count, Iterable):
raise ValueError("Riemannian metric cannot be built in a mixed space.")
self._check_space()
rank = len(fs.dof_dset.dim)
if rank != 2:
raise ValueError(
"Riemannian metric should be matrix-valued,"
f" not rank-{rank} tensor-valued."
)
# rank = len(fs.dof_dset.dim)
# if rank != 2:
# raise ValueError(
# "Riemannian metric should be matrix-valued,"
# f" not rank-{rank} tensor-valued."
# )
jwallwork23 marked this conversation as resolved.
Show resolved Hide resolved

# Stash mesh data
plex = mesh.topology_dm.clone()
Expand Down
Loading
Loading