When we do solutions = mesh_seq.fixed_point_iteration(adaptor), the solutions data are those computed on meshes from second-to-last iteration. I suppose when the meshes have converged that it's not so important, but in general we would want to have the solutions on final meshes (presumably final mesh = best mesh).
Doing another forward solve would require updating the solutions FunctionSpaces via a private method, i.e.
When we do
solutions = mesh_seq.fixed_point_iteration(adaptor)
, thesolutions
data are those computed on meshes from second-to-last iteration. I suppose when the meshes have converged that it's not so important, but in general we would want to have the solutions on final meshes (presumably final mesh = best mesh).Doing another forward solve would require updating the solutions
FunctionSpace
s via a private method, i.e.Easy solution is to put
_create_solutions
insidesolve_forward
rather than calling it withinfixed_point_iteration
.