Both this approach
parameters['form_compiler']['representation'] = 'quadrature'
parameters['form_compiler']['optimize'] = True
parameters['form_compiler'].add('eliminate_zeros', False)
or this approach
assemble(foo, form_compiler_parameters={
'representation': 'quadrature',
'optimize': True,
'eliminate_zeros': False
})
seem to work - just check the generated code. But maybe FFC-specific flags are not taken into account when generating a hash of the form (in fact I don't know from what the hash is generated) because I changed something and got a response Reusing form from cache.
- but I din't investigate this.