OP2/PyOP2 — pull request #111 by wence- (2012-11-15 17:26:48+00:00)
Title: Add API call to zero a Dat

This is probably a common operation, so add a way of doing so. Careful readers will not the huge amount of code duplication. This is because if we push the zero call down into base.py, the wrong objects are instantiated (base, rather than backend-specific) and nothing works.

Is there some way of working around this? I don't know.

I note Graham's early attempts at a stdlib.py foundered a while back. But I would rather that the methods live on the object.