OP2/PyOP2 — pull request #177 by kynan (2013-05-30 15:33:05+00:00)
Title: FFC Form caching

Cache FFC forms on disk to save recompiling when we reuse a form. Note that unlike DOLFIN we only cache the generated code i.e. the PyOP2 Kernel object. This is because the JIT-compiled `ParLoop` objects are backend-specific and already cached via `JITModule`.

The `Cached` base class is moved to its own `caching` module and another base class `DiskCached` derived from it, which in addition to caching in memory also persists the cache on disk.

Also fixes a bug in the previous caching of forms, where the `form_data` object was reused from cache, which meant the arguments passed to the `par_loop` were always those of the time the form was assembled for the first time.