OP2/PyOP2 — pull request #113 by wence- (2012-11-23 13:57:13+00:00)
Title: Add API call to zero a Dat

This is a common operation, so add a method of doing so. Note that we deliberately use a ParLoop to zero the Dat so that at some later date it is composable with other ParLoops.

To avoid code sharing, we create a backends._make_object function which at runtime creates the correct type of object. We can use this to build objects in base for which we only know the type once a backend is selected.