← Back to team overview

dolfin team mailing list archive

[Bug 739217] Re: interpolate does not check value dimension

 

** Changed in: dolfin
       Status: Fix Committed => Fix Released

-- 
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 Released

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