partially works in running the demos

Asked by Houdong Hu on 2013-03-08

I tried to run 9 demo programs (8 in demo/pde, 1 in demo/la)

la/eigenvalue, pde/biharmonic, pde/hyperelasticity, pde/cahn-hilliard, pde/subdomains-poisson are working.

pde/poisson, gets such errors:
File "demo_poisson.py", line 41, in <module>
 V = FunctionSpace(mesh, "Lagrange", 1)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 381, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 81, in __init__
    self._dolfin_element = cpp.FiniteElement(ufc_element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/cpp/fem.py", line 791, in __init__
    _fem.FiniteElement_swiginit(self,_fem.new_FiniteElement(*args))
TypeError: in method 'new_FiniteElement', argument 1 of type 'boost::shared_ptr< ufc::finite_element const >'

pde/navier-stokes, gets such errors:
File "demo_navier-stokes.py", line 38, in <module>
    Q = FunctionSpace(mesh, "CG", 1)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 381, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 81, in __init__
    self._dolfin_element = cpp.FiniteElement(ufc_element)
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/cpp/fem.py", line 791, in __init__
    _fem.FiniteElement_swiginit(self,_fem.new_FiniteElement(*args))
TypeError: in method 'new_FiniteElement', argument 1 of type 'boost::shared_ptr< ufc::finite_element const >'

pde/mixed-poisson gets such errors:
File "demo_mixed-poisson.py", line 59, in <module>
    f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
  File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/expression.py", line 90, in __init__
    for i in range(self.value_rank()))
TypeError: in method 'GenericFunction_value_rank', argument 1 of type 'dolfin::GenericFunction const *'

Could you give some comments on these? Thanks~

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Houdong Hu
Solved:
2013-03-16
Last query:
2013-03-16
Last reply:
2013-03-14
Johannes Ring (johannr) said : #1

Which version of DOLFIN are you using? Or are you using the binary snapshot?

Which version of OS X are you on?

Houdong Hu (vincehouhou) said : #2

Mac 10.7.5
Dolfin in FEniCS OS X 10.7/10.8

I also use Source snapshot for Mac OS X 10.7 to have a try, but nothing happens

Johannes Ring (johannr) said : #3

It looks like you have run into this bug:

https://bugs.launchpad.net/dolfin/+bug/799513

However, this is fixed for everyone else, so I'm not sure what is wrong on your side.

Could you run "env" in the FEniCS terminal and post the output?

Houdong Hu (vincehouhou) said : #4

I have reinstalled ubuntu OS on my PC, now it seems everything works fine. Thanks