Merge pull request #2331 from akva2/janitoring

changed: rename local typedef to avoid shadowing warning
This commit is contained in:
Arne Morten Kvarving 2020-02-10 15:24:15 +01:00 committed by GitHub
commit 22a291a3af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -749,8 +749,8 @@ protected:
void setGhostsInNoGhost(Matrix& ng)
{
ng=0;
typedef typename Matrix::block_type MatrixBlockType;
MatrixBlockType diag_block(0.0);
typedef typename Matrix::block_type MatrixBlockTypeT;
MatrixBlockTypeT diag_block(0.0);
for (int eq = 0; eq < Matrix::block_type::rows; ++eq)
diag_block[eq][eq] = 1.0;