Skip to content

Commit

Permalink
Patched broken uflcache generator (parallel commit to other branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlhicks committed Sep 12, 2024
1 parent 6c50bcb commit be8669e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion q3d/uflcache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def simple_condition(condition: Expr | FromSympy) -> str:
if isinstance(condition, Expr):
string = repr(condition)
# string = re.sub(r'<ufl.domain.AbstractDomain object at 0[xX][0-9a-fA-F]+?>', 'mesh', string)
string = re.sub(r"Mesh\(VectorElement\(FiniteElement\('Lagrange', tetrahedron, 1\), dim=3\), 1\)", 'mesh', string)
string = re.sub(r"Mesh\(VectorElement\(FiniteElement\('Lagrange', tetrahedron, \d\), dim=3\), 1\)", 'mesh', string)
return string
elif isinstance(condition, FromSympy):
return condition.uflfy()
Expand Down

0 comments on commit be8669e

Please sign in to comment.