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

Error: 'GenericDofMap' object has no attribute 'set' in demo_singular-poisson.py

0 votes

Hi,

I got the following error when I ran the example code, demo_singular-poisson.py(http://fenicsproject.org/documentation/dolfin/dev/python/demo/documented/singular-poisson/python/documentation.html). Could anyone tell me how to fix this error?

Traceback (most recent call last):
File "demo_singular-poisson.py", line 79, in
V.dofmap().set(null_vec, 1.0)
AttributeError: 'GenericDofMap' object has no attribute 'set'

By the way, I am using the version 1.0.0 of Dolfin.

Thank you,

Changsun

asked Aug 6, 2014 by thinkwhy FEniCS Novice (120 points)

Update for my issue:
After I upgraded my fenics to 1.4.0., I was able to resolve the above issue.

...