mesh-adaptation / goalie

Goal-oriented error estimation and mesh adaptation for finite element problems solved using Firedrake
Other
2 stars 0 forks source link

Drop out adjoint solution in special case #17

Open jwallwork23 opened 1 year ago

jwallwork23 commented 1 year ago

Suppose we are doing a goal-oriented fixed point iteration. Following pyroteus/pyroteus#154, we are able to skip the metric construction and mesh adaptation step on any subinterval for which the element count has converged, for example. However, the major cost of goal-oriented methods is typically the solution of forward and adjoint problems to get the ingredients for the error indicators, especially if enrichment is used.

If convergence has been reached on the first $n$ subintervals then we can get away without solving the adjoint equation on them, i.e., the adjoint problem is solved backwards in time to subinterval $n+1$.

ddundo commented 1 year ago

Could we do the same in hessian-based fixed point iteration, where we'd skip the last $n$ converged subintervals? And then do a final solve on the final adapted meshes for the output of MeshSeq.fixed_point_iteration()

jwallwork23 commented 1 year ago

Excellent point! Yeah that’d be a nice optimisation too.

ddundo commented 6 months ago

Easily achieved with yield (see #145)

ddundo commented 6 months ago

How would space-time normalisation work in this case? Would it make sense to still recompute the metric at each latter iteration for these converged subintervals and then space-time normalise, but we still don't adapt the converged subintervals?

jwallwork23 commented 5 months ago

How would space-time normalisation work in this case? Would it make sense to still recompute the metric at each latter iteration for these converged subintervals and then space-time normalise, but we still don't adapt the converged subintervals?

An initial thing to try might be to keep track of the complexities of the metrics that were used for the subintervals that get fixed, subtract those from the overall target complexity available for the remaining ones, and do space-time normalisation over the reduced set of subintervals.

One problem that might arise is if significant resolution was used for the dropped out subintervals and it turns out more DoFs would be required for the others than remain available.