Hello, and apologies again for accidentally sending my previous draft message 
to the 
mailing list.

I am trying to build FEniCS on Kubuntu 14.04 using Dorsal, in order to try out 
the CBC.block 
demos. The build apparently worked, but I then discovered that various 
components are 
not properly configured. In particular:
1) Epetra is "found" but not "available".
2) petsc4py is disabled because of an apparent incompatibility between 
PETSc version 3.5.2 and petsc4py version 3.4.

How do I fix these? I have tried to include all relevant details below.
All the best, Paul

---
Contents of
${HOME}/sync/src-downloaded/fenics-project-dorsal-deb2244d44e3/local.cfg

# Global configuration variables go here. You will want to tweak this
# file to suit your needs. If you want to keep local changes that are
# not overwritten by repository updates, those can be written
# to local.cfg instead (entries there will override those in this file).

# Meta-project to build
PROJECT=FEniCS
# Where do you want the downloaded source files to go?
DOWNLOAD_PATH=${HOME}/sync/src-downloaded/${PROJECT}/src
# Where do you want the compiled software installed?
INSTALL_PATH=${HOME}/opt/${PROJECT}
# How many processes would you like to build using?
PROCS=4
# Would you like to build stable versions of FEniCS projects?
STABLE_BUILD=false
# Would you like to use snapshots when using STABLE_BUILD=false?
USE_SNAPSHOTS=true

---
Successful check in
${HOME}/sync/src-downloaded/FEniCS/src/dolfin-snapshot/dorsal_configure.log
[...]
-- Checking for Trilinos
--   Trilinos version 11.4.1 found. Checking for components
--     Epetra found
--     Zoltan found
--     ML found
--     Ifpack found
--     Amesos found
--     Belos found
--   All necessary Trilinos components found. Trilinos will be enabled.
[...]

---
Warning in
${HOME}/sync/src-downloaded/FEniCS/src/dolfin-snapshot/dorsal_configure.log
[...]
-- Checking for package 'PETSc4Py'
-- petsc4py version 3.4 found
CMake Warning at CMakeLists.txt:390 (message):
  PETSc version 3.5.2 and petsc4py version 3.4 do not match.  Disabling
  petsc4py support
[...]

---
Results of running demo/biot.py
$ python biot.py
Linear algebra backend "Epetra" not available, using uBLAS.
Linear algebra backend "Epetra" not available, using uBLAS.
Linear algebra backend "Epetra" not available, using uBLAS.
Linear algebra backend "Epetra" not available, using uBLAS.
Traceback (most recent call last):
  File "biot.py", line 118, in <module>
    [a10, a11]])
  File "/usr/local/lib/python2.7/dist-packages/block/block_assemble.py", line 
55, in 
block_assemble
  File "/usr/local/lib/python2.7/dist-packages/block/block_assemble.py", line 
53, in <lambda>
  File 
"/home/leopardi/opt/FEniCS/lib/python2.7/site-packages/dolfin/fem/assembling.py",
 
line 203, in assemble
    assembler.assemble(tensor, dolfin_form)
RuntimeError: *** Error: All dofmaps must have same block size (for now)

---
Results of running demo/poisson.py:
$ python poisson.py
Traceback (most recent call last):
  File "poisson.py", line 23, in <module>
    B = ML(A)
  File 
"/usr/local/lib/python2.7/dist-packages/block/algebraic/petsc/precond.py", line 
85, in 
__init__
  File 
"/usr/local/lib/python2.7/dist-packages/block/algebraic/petsc/precond.py", line 
12, in 
__init__
  File 
"/home/leopardi/opt/FEniCS/lib/python2.7/site-packages/dolfin/cpp/la.py", line 
1929, 
in mat
    "dolfin must be configured with petsc4py enabled")
  File 
"/home/leopardi/opt/FEniCS/lib/python2.7/site-packages/dolfin/cpp/common.py", 
line 2358, in dolfin_error
    return _common.dolfin_error(*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 access PETScMatrix objects in python.
*** Reason:  dolfin must be configured with petsc4py enabled.
*** Where:   This error was encountered inside dolfin/swig/la/post.i.
*** Process: unknown
*** 
*** DOLFIN version: 1.4.0+
*** Git changeset:  
*** -------------------------------------------------------------------------
-- 
Paul Leopardi
http://www.maths.anu.edu.au/~leopardi
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to