dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22105
[Bug 739217] [NEW] interpolate does not check value dimension
Public bug reported:
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)
** Affects: dolfin
Importance: Undecided
Status: New
** Changed in: dolfin
Milestone: None => 0.9.11
--
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:
New
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)
Follow ups
References