Skip to content

Make linear solver rebuild when grid is adapted

Lukas Riedel requested to merge adaptivity-with-linear-solver into master

What does this MR do?

This MR adds a check in the LinearSolver that also rebuilds the grid operators and solver structures as soon as the grid was adapted. This information is passed via the adapted parameter from the Adaptivity block.

The testadaptivity case was vastly extended to include a linear solver and repeat the application of the adaptivity and solver blocks to ensure that this works.

Why was this MR needed?

The Adaptivity block propagates the information that the grid was adapted via the adapted parameter. However, this was not taken into account in the LinearSolver block. When the grid is adapted, the grid operators have to be rebuilt.

Open Questions

  • This is quite a change from the original testadaptivity, but that test basically only checked if the Adaptivity block coult be built. Is the current state agreeable or should there be two tests?

Merge request reports

Loading