Skip to content

Commit 53eaec4

Browse files
committed
cast to numpy array
1 parent b70610e commit 53eaec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

firedrake/function.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ def evaluate(self, coord, mapping, component, index_values):
549549
# Called by UFL when evaluating expressions at coordinates
550550
if component or index_values:
551551
raise NotImplementedError("Unsupported arguments when attempting to evaluate Function.")
552+
coord = np.asarray(coord, dtype=utils.ScalarType)
552553
evaluator = PointEvaluator(self.function_space().mesh(), coord)
553554
result = evaluator.evaluate(self)
554555
if len(coord.shape) == 1:

0 commit comments

Comments
 (0)