derives the discrete adjoint and tangent linear models
copied from cf-staging / dolfin-adjointThe dolfin-adjoint project automatically derives the discrete adjoint and tangent linear models from a forward model written in the Python interface to DOLFIN.