This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Embarassingly parallel fenics

0 votes

I'm preforming Monte Carlo around a model I implemented in Fenics. Monte Carlo (MC) is embarrassingly parallel --- I'm running each model evaluation in serial (only one node). It works fine if I don't use the parallel code, however, if I try to run MC in parallel I get the error:

*** Error:   Unable to creating EigenVector.
*** Reason:  EigenVector does not support parallel communicators.
*** Where:   This error was encountered inside EigenVector.cpp.

I don't have fenics linked to Petsc, which I think is the reason that I get this error. However, since the actual PDE solve is not in parallel, is there an easy work around?

asked Jan 20, 2017 by davisad FEniCS Novice (470 points)

Try to download the script and then run:
bash fenics-install.sh

I this error running bash fenics-install.sh

[vtk] Building vtk/j3p7iviejcrg, follow log with:
[vtk]   tail -f /Users/andrewdavis/.hashdist/tmp/vtk-j3p7iviejcrg/_hashdist/build.log
[vtk|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[vtk|ERROR] command failed (code=1); raising

In my experience sometimes it stops but when you run the script again it can come over the problem. I was able to install FEniCS on a mac with Hashdist some days ago, but I had to restart the script at least 3 times.

strange --- rerunning the script doesn't seem to change the problem.

I did manage to get the Dolfine cmake to find the petsc library, however, now I get the error:

  Imported target "PETSC::petsc" includes non-existent path
"/usr/local/Cellar/open-mpi/1.8.4_1/include"
  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
  * The path was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and references files it does 
    not provide.

Indeed, this directory does not exist --- it should be:

/usr/local/Cellar/open-mpi/2.0.1/include

which is what my version of petsc points to. Do you know how to fix this?

I would have a look what is the error message "tail -f /Users/andrewdavis/.hashdist/tmp/vtk-j3p7iviejcrg/_hashdist/build.log"

...