← Back to team overview

dolfin team mailing list archive

[Bug 685223] Re: Adding member functions to GenericFunction screws up compiled Expressions

 

Code the reproduces the error:

  from dolfin import *

  f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
  x0 = [1.0, 0.5]

  # This works
  v0 = f(x0)
  print v0

  # This seg faults (it should call GenericFunction::gather, which does nothing)
  f.gather()

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/685223

Title:
  Adding member functions to GenericFunction screws up compiled Expressions

Status in DOLFIN:
  Confirmed

Bug description:
  To reproduce, just run a Python demo that uses compiled expressions (as of r. 5356). Result is a seg fault.







References