Dear all,
I have a problem where a Poisson-like equation has to be solved again and again in many time steps. At each timestep the LHS remains the same while the RHS changes (slightly). My current implementation is to use the standard SolverCG, passing the old solution as initial, which already reduces the number of CG steps required. Yet, I wonder whether my approach is naive and there is a faster way to implement this, taking better advantage of the fact that the LHS stays always the same. I initially thought about calculating the inverse matrix once and just doing matrix multiplication, but since the mass matrix is a huge sparse matrix, only storing the inverse (which in general is not sparse) would require huge memory. I also thought about the LinearOperator concepts, but if I understood correctly, they just implement a nice wrapper to call a solver each time. Am I missing something?
Cheers,
Andreas