From 8731a4fda90f2359000a66fa6710cb34e90fa5fa Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Fri, 25 Aug 2017 17:15:34 +0200 Subject: [PATCH] [bugfix] sqrt function needs to be takjen from numpy --- python/dune/perftool/ufl/visitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dune/perftool/ufl/visitor.py b/python/dune/perftool/ufl/visitor.py index e7d32af1..c9b9e651 100644 --- a/python/dune/perftool/ufl/visitor.py +++ b/python/dune/perftool/ufl/visitor.py @@ -293,7 +293,7 @@ class UFL2LoopyVisitor(ModifiedTerminalTracker): return self._evaluate_function(np.exp, "exp", self.call(o.ufl_operands[0])) def sqrt(self, o): - return self._evaluate_function(sqrt, "sqrt", self.call(o.ufl_operands[0])) + return self._evaluate_function(np.sqrt, "sqrt", self.call(o.ufl_operands[0])) def power(self, o): from ufl.constantvalue import IntValue -- GitLab