Hello everybody,
My UFL-File is something like:
cell = triangle
CG = FiniteElement("CG", cell, 1)
sigma1 = Coefficient(CG)
sigma2 = Coefficient(CG)
w1 = TrialFunction(CG)
q1 = TestFunction(CG)
w2 = TrialFunction(CG)
q2 = TestFunction(CG)
f = Coefficient(CG)
a1=... (not relevant)
a2=...(not relevant)
L1=...(not relevant)
L2=...(not relevant)
DG = FiniteElement("DG", cell, 0)
u = TrialFunction(DG)
v = TestFunction(DG)
k = Constant(cell)
g = Coefficient(DG)
a = u*v*dx
L = v*w1*(dx(1)+(1-k)*(dx(2)+dx(3))+dx(4)) + v*w2*(k*(dx(2)+dx(3))+dx(5)) + u*g*(ds(2)-ds(3))
while compiling it with ffc -l dolfin *.ufl
I get the Error
TypeError: unsupported operand type(s) for +: 'Measure' and
'MeasureSum'
caused by the last Line.
Where is the mistake in this case and why?
I just want to integrate over several subdomains and in the subdomains 2 and 3 there should be 1-k timesthe solution of w1 and k times thesolution of w2.
I hope I stated clear, what I need to implement and you have any idea how to fix it.
Sincerely,
Justus