Event

class dolfin.cpp.common.Event(msg, maxcount=1)

Bases: object

A event is a string message which is displayed only a limited number of times.

Example
>>> event = dolfin.Event("System is stiff, damping is needed.", 3)
>>> for i in range(10):
...     if i > 7:
...         print i
...         event()

Constructor

count()

Display count

maxcount()

Maximum display count

thisown

The membership flag