Out of range error with Python MeshFunction iterator
Bug #973906 reported by
Garth Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Committed
|
Low
|
Johan Hake |
Bug Description
The below code leads to DOLFIN throwing an error:
from dolfin import *
mesh = UnitSquare(2, 2)
mf = CellFunction(
for f in mf:
print f
Related branches
Changed in dolfin: | |
status: | New → Confirmed |
To post a comment you must log in.
MeshFunction. __getitem_ _ raised a RuntimeError (from cpp library) instead of an IndexError. It now raises the correct error and a MeshFunction is now iterable