Hello,

I am just starting out with FEniCS and was trying out the Python Cahn-Hilliard 
example under 'dolfin-1.4.0/demo/documented/cahn-hilliard/python’. However, I 
get the following error. Any thoughts on this issue? What mistake am I making? 

The detailed error is copied below. I have FEniCS built from source and running 
on an Ubuntu 12.04 machine. The SWIG version in the machine is 2.0.4.

Many thanks,
Aniruddha

mpirun -n 2 python demo_cahn-hilliard.py 
Number of global vertices: 9409
Number of global cells: 18432
Traceback (most recent call last):
Traceback (most recent call last):
  File "demo_cahn-hilliard.py", line 70, in <module>
    u   = Function(ME)  # current solution
  File 
"/home/jana/Builds/lib/python2.7/site-packages/dolfin/functions/function.py", 
line 279, in __init__
    self.__init_from_function_space(V)
  File 
"/home/jana/Builds/lib/python2.7/site-packages/dolfin/functions/function.py", 
line 322, in __init_from_function_space
    cpp.Function.__init__(self, V)
  File "/home/jana/Builds/lib/python2.7/site-packages/dolfin/cpp/function.py", 
line 715, in __init__
    _function.Function_swiginit(self,_function.new_Function(*args))
RuntimeError: 

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
***     [email protected]
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error:   Unable to resize uBLAS vector.
*** Reason:  Distributed vectors not supported by uBLAS backend.
*** Where:   This error was encountered inside uBLASVector.cpp.
*** Process: unknown
*** 
*** DOLFIN version: 1.4.0
*** Git changeset:  
*** -------------------------------------------------------------------------

  File "demo_cahn-hilliard.py", line 70, in <module>
    u   = Function(ME)  # current solution
  File 
"/home/jana/Builds/lib/python2.7/site-packages/dolfin/functions/function.py", 
line 279, in __init__
    self.__init_from_function_space(V)
  File 
"/home/jana/Builds/lib/python2.7/site-packages/dolfin/functions/function.py", 
line 322, in __init_from_function_space
    cpp.Function.__init__(self, V)
  File "/home/jana/Builds/lib/python2.7/site-packages/dolfin/cpp/function.py", 
line 715, in __init__
    _function.Function_swiginit(self,_function.new_Function(*args))
RuntimeError: 

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
***     [email protected]
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error:   Unable to resize uBLAS vector.
*** Reason:  Distributed vectors not supported by uBLAS backend.
*** Where:   This error was encountered inside uBLASVector.cpp.
*** Process: unknown
*** 
*** DOLFIN version: 1.4.0
*** Git changeset:  
*** -------------------------------------------------------------------------
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to