problem with python 2.7.1
Hi @all
i try to install fenics with ufl 0.9.0 on our hpc cluster using python 2.7.1.
As a small test, i used the poisson example
element = FiniteElement(
u = TrialFunction(
v = TestFunction(
f = Coefficient(
g = Coefficient(
a = inner(grad(u), grad(v))*dx
L = f*v*dx + g*v*ds
This small example leads to the following problem with
ufl-analyse -w 1 Poisson.ufl
Loading form file 'Poisson.ufl'
Invalid object type <class 'ufl.algorithms
Traceback (most recent call last):
File "/home/
write("\n\nForm tree formatting (preprocessed):\n", tree_format(
File "/home/
error("Invalid object type %s" % type(expression))
File "/home/
raise self._exception
ufl.log.
The created logfile Poisson.ufl.log has the content
Form data:
None
Form pretty-print (original):
{ (grad(v_{-1})) : (grad(v_{-2})) } * dx0
Form pretty-print (preprocessed):
Name: 'a'
Rank: 2
Cell: <triangle cell in R2>
Topological dimension: 2
Geometric dimension: 2
Number of facets: 3
Number of coefficients: 0
Number of cell domains: 1
Number of exterior facet domains: 0
Number or interior facet domains: 0
Number of macro cell domains: 0
Number of surface domains: 0
Arguments: '[v_0, v_1]'
Coefficients: '[]'
Argument names: '[v, u]'
Coefficient names: '[]'
Unique elements: 'CG1(?)'
Unique sub elements: 'CG1(?)'
Form representation (original):
Form([
Form representation (preprocessed):
<ufl.algorithm
Form tree formatting (original):
Form:
Integral:
domain type: cell
domain id: 0
integrand:
Inner
(
)
If I use the same with the fenics form compiler (version 0.9.9), I get the error:
Traceback (most recent call last):
File "/home/
sys.
File "/home/
compile_
File "/home/
analysis = analyze_
File "/home/
forms = tuple(_
File "/home/
forms = tuple(_
File "/home/
info(
AttributeError: 'FormData' object has no attribute 'form_data'
Currently, I don't know if the problem comes from the ffc or from ufl.
Do you have any hint, or idea to solve the problem?
If you need more information, I will see if I can provide them.
Regards
Andreas
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- UFL 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 Andreas Naumann for more information if necessary.