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

    Status: Open => Answered

Patrick Riesen proposed the following answer:
hi,

> 
>                       Gradients::FunctionSpace _VGradA(*anode);
>                       
>                       Gradients::BilinearForm aGradA(_VGradA, _VGradA);
>                       Gradients::LinearForm LGradA(_VGradA);
>                       dolfin::Function _GradA(_VGradA);
>                       dolfin::Function _GradAvg(_VGradA);
>                       
>                       dolfin::Function _GradAvgX(_VGradA);
>                       dolfin::Function _GradAvgY(_VGradA);
>                       
>                       _GradAvgX = _GradAvg[0];
>                       _GradAvgY = _GradAvg[0];

I guess that _GradAvgX as a subfunction of _GradAvg can not have the 
same function space _VGradA as _GradAvg.

you may try

Function _GradAvg(_VGradA);
Function _GradAvgX = _GradAvg[0];


patrick

-- 
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     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to