Skip to content

Commit

Permalink
#79: Convert sympy output to float
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Jun 15, 2024
1 parent 7358e2f commit ca01bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion movement/monge_ampere.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _l2_projector_bcs(self, boundary_tag):
f"Could not determine a plane for boundary segment '{boundary_tag}'."
) from exc
for x in self.mesh.coordinates.dat.data_with_halos[zero_bc.nodes]:
if not np.isclose(f(*x), 0):
if not np.isclose(float(f(*x)), 0):
raise ValueError(
f"Boundary segment '{boundary_tag}' is not"
f" {'linear' if self.dim == 2 else 'planar'}."
Expand Down

0 comments on commit ca01bee

Please sign in to comment.