Commit af203179 authored by Stephan Rave's avatar Stephan Rave

[fenics] implement from_numpy

parent 1f9345fa
Pipeline #49437 failed with stages
in 67 minutes and 10 seconds
......@@ -158,6 +158,11 @@ if config.HAVE_FENICS:
impl[:] = values
return FenicsVector(impl)
def real_vector_from_numpy(self, data, ensure_copy=False):
impl = df.Function(self.V).vector()
impl[:] = data
return FenicsVector(impl)
def real_make_vector(self, obj):
return FenicsVector(obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment