firedrakeproject/firedrake — pull request #68 by dham (2013-11-09 16:25:53+00:00)
Title: Create the Jacobian in the right place.

Move the automatic differentiation of the residual from solve to the NonlinearVariationalProblem constructor. This means that the Jacobian is still created if a user directly instantiates a NonlinearVariationalProblem. If the user passes a Jacobian, this is still honoured.