Dear all
I have an error when i run the following minimal problem:
from dolfin import*
import numpy as np
mesh=UnitCubeMesh(16, 16, 16)
V = VectorFunctionSpace(mesh, "CG", 2)
noise = Function(V)
noise_vec = np.random.normal(0,0.5,171717)
noise.vector()[:] = noise_vec[vertex_to_dof_map(V)]
Bellow the report error
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/cpp/fem.py", line 724, in vertex_to_dof_map
return _fem.vertex_to_dof_map(*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
*** fenics@fenicsproject.org
*** Remember to include the error message listed below and, if possible,
*** include a minimal running example to reproduce the error.
*** -------------------------------------------------------------------------
*** Error: Unable to tabulate dof to vertex map.
*** Reason: Can only tabulate dofs on vertices.
*** Where: This error was encountered inside DofMap.cpp.
*** Process: 0
*** DOLFIN version: 1.3.0
*** Git changeset: 45ff879f5d3641a30d04335983e6cbd4823d1b6d
Any help will be appreciated.