Add getMatrix() const method needed for GPU solvers.

Somehow I missed testing with CUDA.
This commit is contained in:
Markus Blatt
2020-05-13 15:33:34 +02:00
parent 654fbf864e
commit d54268513e

View File

@@ -1137,6 +1137,11 @@ protected:
return noGhostMat_ ? *noGhostMat_ : *matrix_;
}
const Matrix& getMatrix() const
{
return noGhostMat_ ? *noGhostMat_ : *matrix_;
}
const Simulator& simulator_;
mutable int iterations_;
mutable bool converged_;