Commit 1f9345fa authored by Stephan Rave's avatar Stephan Rave

[fenics] remove unnecessary copy from to_numpy

parent bff40853
......@@ -34,9 +34,7 @@ if config.HAVE_FENICS:
self.impl = self.impl.copy()
def to_numpy(self, ensure_copy=False):
if ensure_copy:
return self.impl.copy().get_local()
return self.impl.get_local()
return self.impl.get_local() # always returns a copy
def _scal(self, alpha):
self.impl *= alpha
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment