← Back to team overview

dolfin team mailing list archive

Mesh iterators in Python

 

The DOLFIN mesh iterators now work in PyDOLFIN. Thanks to Ola Skavhaug
for helping me track down one of the remaining bugs.

Here's a simple example:

  from dolfin import *

  mesh = UnitCube(5, 5, 5)

  for cell in cells(mesh):
     for vertex in vertices(cell):
       # do something with vertex

All unit tests now run again.

/Anders