dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22202
Re: [Bug 739217] Re: interpolate does not check value dimension
On Tue, Mar 22, 2011 at 09:16:56PM -0000, Garth Wells wrote:
> ** Changed in: dolfin
> Assignee: Anders Logg (logg) => Garth Wells (garth-wells)
>
> ** Changed in: dolfin
> Status: Confirmed => Fix Committed
Thanks. :-)
--
Anders
--
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/739217
Title:
interpolate does not check value dimension
Status in DOLFIN:
Fix Committed
Bug description:
interpolate allows interpolation to/from spaces of different value dimensions. This is error prone. Should add check (unless someone considers it to be a feature.)
from dolfin import *
mesh = UnitSquare(2, 2)
V = VectorFunctionSpace(mesh, "CG", 1)
f = Expression("1.0")
w = interpolate(f, V)
References