Problem with assemble() with MixedFunctionSpace of symmetric TensorFunctionSpaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Medium
|
Unassigned | ||
FFC |
Fix Released
|
Medium
|
Unassigned |
Bug Description
from dolfin import *
mesh = Rectangle(
dim = 2 #assume 2D
symm = dict(((i,j), (j,i))
for i in range(dim) for j in range(dim) if i > j )
T1 = TensorFunctionS
T2 = TensorFunctionS
TT = T1*T2
R, S = TrialFunctions(TT)
v_R, v_S = TestFunctions(TT)
P = Function(T1)
Q = Function(T2)
Fr = inner(R,v_R)*dx+ inner(P,v_R)*dx
Fs = inner( S, v_S )*dx + inner( Q, v_S )*dx
F = Fr + Fs
A = lhs(F)
B = rhs(F)
a = Matrix()
a = assemble(A, tensor=a)
b = Vector()
b = assemble(B, tensor=b)
I get the following error:
Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
File "tensortest2.py", line 28, in <module>
a = assemble(A, tensor=a)
File "/usr/lib/
common_
File "/usr/lib/
(self.
File "/usr/lib/
return local_jit(*args, **kwargs)
File "/usr/lib/
return jit_compile(form, parameters=p, common_
File "/usr/lib/
return jit_form(object, parameters, common_cell)
File "/usr/lib/
compile_
File "/usr/lib/
ir = compute_
File "/usr/lib/
irs = [_compute_
File "/usr/lib/
parameters)
File "/usr/lib/
ir["AK"] = _compute_
File "/usr/lib/
quadrature_
File "/usr/lib/
self.A0 = integrate(monomial, domain_type, facet0, facet1, quadrature_order)
File "/usr/lib/
psis = [_compute_psi(v, table, len(points), domain_type) for v in monomial.arguments]
File "/usr/lib/
Psi[
Changed in dolfin: | |
status: | New → Confirmed |
milestone: | none → 0.9.12 |
Changed in ffc: | |
importance: | Undecided → Medium |
Changed in dolfin: | |
importance: | Undecided → Medium |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
Changed in ffc: | |
status: | Fix Committed → Fix Released |
NOTE: I initially posted this as a Question, if that's wrong of me I can delete that thread.
I am trying to solve for a system of equations with two symmetric tensors as unknowns, and encountering a number of errors with a MixedFunctionSpace consisting of two TensorFunctionS paces with symmetry when assembling.
I have written a short piece of code which creates the same error:
What's going wrong here?