← Back to team overview

dolfin team mailing list archive

Re: [Question #92245]: Gradients and SubFunctions

 

Question #92245 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/92245

Patrick Riesen proposed the following answer:
For

Gradients[0] = GradX;

this won't work since you can not assign to a subfunction from a function, only the other way round is possible (to my knowledge).
But you can create a copy of Gradients and manipulate/insert the right values as i pointed out above.

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.