dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #23490
Re: [Question #159021]: Assigning initial values to a mixed function space for a nonlinear problem.
Question #159021 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/159021
Garth Wells posted a new comment:
This is a really evil way to do it. Better ways are:
a) Create an Expression and interpolate
b) Get a list of dofs (via W.sub(i).dofmap().dofs()), and use this list
to set the vector entries. I don't know if GenericDofMap::dofs is
exposed in the Python interface. It returns a boost::unordered_map which
might be problematic. We could add a std::vector or dolfin::Array
version.
Garth
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.