The bug was caused by the fact that the first nonlinear solve of a variable does not annotate an initial condition.
As a consequence, the functional evaluation could not access the left hand side value of the first time interval (which is the initial condition).
This fix ensures that even for nonlinear sovles an initial condition is annotated.
A fix is commited to lp:~libadjoint/dolfin-adjoint/bug_1032291
The bug was caused by the fact that the first nonlinear solve of a variable does not annotate an initial condition.
As a consequence, the functional evaluation could not access the left hand side value of the first time interval (which is the initial condition).
This fix ensures that even for nonlinear sovles an initial condition is annotated.