dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19716
Re: [Question #125426]: Dirichlet b.c. applied to components
On Tuesday September 14 2010 13:52:06 Joe Morris wrote:
> Question #125426 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/125426
>
> Status: Answered => Open
>
> Joe Morris is still having a problem:
> Excellent. In c++ I tried achieving this with:
>
> SubSpace V0(*V,0);
> DirichletBC bcLeftRightFixedU(V0, leftRightFixedU,
> onLeftRightBoundary); bcs.push_back(&bcLeftRightFixedU);
>
> But at runtime I get the complaint that:
>
> Error: Unable to create boundary condition. Reason: Illegal value 1 for
> value rank, should be 0.
It looks like you passed a vector constant as leftRightFixedU.
It should be:
Constant leftRightFixedU(0.);
Johan
Follow ups
References