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

Problem with ghost_mode

0 votes

Hi,

when running the code
demo_biharmonic.py
from
http://fenicsproject.org/documentation/dolfin/dev/python/demo/documented/biharmonic/python/documentation.html
I get the following error:

KeyError: "'ghost_mode' is not a parameter"

so the error comes from the line
parameters["ghost_mode"] = "shared_facet"

Any idea what the problem could be?
thanks

asked Dec 17, 2014 by Antoine FEniCS Novice (810 points)

What version are you using? This option is not available in 1.4.0

Indeed I am using version 1.4.0. So is there any alternative?

You can get the latest source code from:
git clone https://git@bitbucket.org/fenics-project/dolfin

But you might be better to wait for 1.5.0, which is due out in January

On the other hand, it is only important in parallel, so if you are not using MPI you can just comment out that line

1 Answer

+1 vote

You need to update to the development version.

The parameter will be available in 1.5, but will still be an 'undocumented' feature, i.e. subject to change at any time.

answered Dec 18, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
...