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.

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to