I'm ultimately trying to implement adaptive time stepping into model I've created and I was wondering if
1) there is a standard example for adaptive timestepping with fenics? (I've looked but can't find one) or
2) is there a way to have a non linear solver return a residual instead of raising a non-convergence error?
any suggestions are greatly appreciated.
Also I'm using the same type of solver as the example problem in the link below, but open to using an arguably "better one"
https://fenicsproject.org/documentation/dolfin/dev/python/demo/documented/cahn-hilliard/python/documentation.html