problem compiling form with ffc
I have a form that compiles fine on a 1D mesh but when I try to compile on a 2D mesh, instant throws an errror. The compile.log says j is not delclared. I think I was able to pinpoint the problem to the function ffc.quadrature.
There is a for loop at the end that is not being generated correctly:
line 426 in ffc.quadrature.
# Write all the loops of basis functions.
for loop, ops_lines in loops.items():
ops, lines = ops_lines
prim_ops = reduce(lambda i, j: i*j, [ops] + [l[2] for l in loop])
# Add number of operations for current loop to total count.
num_ops += prim_ops
code += ["", f_comment("Number of operations for primary indices: %d" % prim_ops)]
code += f_loop(lines, loop)
_______
running build_ext
building '_b9efe4da2dfe0
creating build
creating build/temp.
gcc -pthread -fno-strict-
cc1plus: warning: command line option ‘-Wstrict-
In file included from b9efe4da2dfe08b
ffc_form_
ffc_form_
error: command 'gcc' failed with exit status 1
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Chaffra Affouda for more information if necessary.