← Back to team overview

dolfin team mailing list archive

[Bug 45] No rank or dimension test for provided coeffisient functions in pydolfin

 

http://www.fenics.org/cgi-bin/bugzilla/show_bug.cgi?id=45





------- Comment #2 from hake@xxxxxxxxx  2008-06-27 11:28 -------
Code causing seg fault:
**********************************************
from dolfin import *

class MyFunc(Function):
    def eval(self,v,x):
        v[0] = x[0]
        v[1] = x[1]
        v[2] = x[2]
    def rank(self):
        return 1
    def dim(self,top):
        return 3

mesh = UnitCube(10,10,10)
scalar = FiniteElement("Lagrange", "tetrahedron", 1)
vector = VectorElement("Lagrange", "tetrahedron", 1)

u0 = Function(scalar,mesh)
my_func = MyFunc(vector,mesh)

form = u0*u0*dx

assemble(form,mesh,[my_func])


-- 
Configure bugmail: http://www.fenics.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.