remove unused variables

This commit is contained in:
Arne Morten Kvarving
2022-09-09 08:38:17 +02:00
parent 58b0121e9b
commit c68d979d4b
3 changed files with 0 additions and 9 deletions

View File

@@ -134,12 +134,10 @@ std::shared_ptr<MyMatrix> create1DLaplacian(I& indexset, int N, int start, int e
continue;
}
double dval=0;
if(row>0)
{
mm->colIndex[nnz]=localRow-1;
mm->data[nnz++]=-1;
dval+=1;
}
mm->colIndex[nnz]=localRow;
mm->data[nnz++]=2;//dval+(row<N-1);
@@ -147,7 +145,6 @@ std::shared_ptr<MyMatrix> create1DLaplacian(I& indexset, int N, int start, int e
{
mm->colIndex[nnz]=localRow+1;
mm->data[nnz++]=-1;
dval+=1;
}
mm->rowStart[localRow+1]=nnz;
indexset.add(row, LocalIndex(localRow, GridAttributes::owner, true));

View File

@@ -43,7 +43,6 @@ BOOST_AUTO_TEST_CASE(Invert4x4)
{
typedef Dune::FieldMatrix<double, 4, 4> BaseType;
BaseType matrix;
BaseType eye;
BaseType inverse;
for (int i = 0; i < 4; ++i) {