Skip to content
Snippets Groups Projects
Commit ce994892 authored by Markus Blatt's avatar Markus Blatt
Browse files

Calm valgrind. Initialize all values.

[[Imported from SVN: r691]]
parent bff68ba9
No related branches found
No related tags found
No related merge requests found
......@@ -265,6 +265,13 @@ int main()
bcrsMatrix.endindices();
typedef BCRSMatrix<FieldMatrix<double,2,2> >::RowIterator RowIterator;
typedef BCRSMatrix<FieldMatrix<double,2,2> >::ColIterator ColIterator;
for(RowIterator row = bcrsMatrix.begin(); row != bcrsMatrix.end(); ++row)
for(ColIterator col = row->begin(); col != row->end(); ++col)
*col = 1.0 + (double) row.index() * (double) col.index();
testMatrix(bcrsMatrix);
// ////////////////////////////////////////////////////////////////////////
......@@ -272,6 +279,7 @@ int main()
// ////////////////////////////////////////////////////////////////////////
BDMatrix<FieldMatrix<double,4,4> > bdMatrix(2);
bdMatrix = 4.0;
testMatrix(bdMatrix);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment