mfherbst / ReducedBasis.jl

Reduced basis methods for parametrised eigenproblems
https://mfherbst.github.io/ReducedBasis.jl/stable/
MIT License
14 stars 0 forks source link

Use `info` object to improve data flow in `assemble` #13

Closed pbrehmer closed 1 year ago

pbrehmer commented 1 year ago

We could use the info object in the assemble main loop to avoid statements like basis = basis_new to improve data flow visibility.

This would also be useful for a potential "resume simulation" feature, where the info state would be saved to disk and one could call assemble(info, ...) to continue a previous basis assembly run.

pbrehmer commented 1 year ago

Adjusted the assemble main-loop using the info object. This made the "resume simulation" feature natural to implement. We can now include a previous assembly info as a keyword argument as assembly(...; previous_info=info).

Maybe we could also have a separate resume_assembly function for this purpose?