taylor-test for a timedependent problem

Asked by Martin Sandve Alnæs

Is there any example code showing how to run taylor-test for a timedependent problem? From what I gather from the API I'll have to do the time integration manually as part of the Jhat callback function, or is that automated through replay?

Question information

English Edit question
dolfin-adjoint Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Patrick Farrell (pefarrell) said :

I assume you mean time-dependent functional?

There is; take a look at burgers_newton_time_functional. In order to compare it, the forward model has to do its own time integration manually, as you pointed out.

Note that it uses test_initial_condition_adjoint, which is deprecated and superseded by taylor_test. (taylor_test is a generalisation of a whole lot of different variants.) But it is doing the Taylor test with that functional.

Can you help with this problem?

Provide an answer of your own, or ask Martin Sandve Alnæs for more information if necessary.

To post a message you must log in.