OP2/PyOP2 — pull request #57 by wence- (2012-09-19 15:55:09+00:00)
Title: Faster scalar field assembly

When assembling scalar fields, we can avoid calling addto_scalar in the inner loop by assembling into a complete local element matrix and then calling addto_vector once per element. This gives about a 10% speed boost for the fluidity P1 advection-diffusion ufl test case, and a larger speedup for P2 discretisation.

Buildbot pass:

http://buildbot-ocean.ese.ic.ac.uk:8080/builders/pyop2-testing/builds/208