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

fenics 1.6: k.vector()[cell_no] = k_values[subdomain_no] results in TypeError

0 votes

Dear all,
Running mat2x_p2D.py fails with the followin message: TypeError: contiguous numpy array of 'dolfin_index' expected. I got the same message in my own code.

I'm running fenics 1.6 under OpenSuse 13.2 with:
dolfin-openmpi-1.6.0-3.5.x86_64
python-dolfin-openmpi-1.6.0-3.5.x86_64
dolfin-doc-1.6.0-3.5.noarch
dolfin-openmpi-devel-1.6.0-3.5.x86_64
libdolfin1_6-openmpi-1.6.0-3.5.x86_64
python-dolfin_utils-openmpi-1.6.0-3.5.x86_64
python-numpy-1.10.1-136.1.x86_64
swig-3.0.7-95.1.x86_64

Andreas

asked Dec 29, 2015 by agerber FEniCS Novice (120 points)
...