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

removed warnings.

[[Imported from SVN: r1132]]
parent 268c0422
No related branches found
No related tags found
No related merge requests found
......@@ -1034,7 +1034,7 @@ namespace Dune {
if (x.N()!=N()) DUNE_THROW(ISTLError,"index out of range");
if (y.N()!=M()) DUNE_THROW(ISTLError,"index out of range");
#endif
for(int i=0; i<y.N(); ++i)
for(size_type i=0; i<y.N(); ++i)
y[i]=0;
umtv(x,y);
}
......
......@@ -356,7 +356,8 @@ namespace Dune {
if (x.N()!=N()) DUNE_THROW(ISTLError,"index out of range");
if (y.N()!=M()) DUNE_THROW(ISTLError,"index out of range");
#endif
for(int i=0; i<y.N(); ++i)
for(size_type i=0; i<y.N(); ++i)
y[i]=0;
umtv(x,y);
}
......
......@@ -169,8 +169,8 @@ void testMatrix(MatrixType& matrix, X& x, Y& y)
// More dimension stuff
// ///////////////////////////////////////////////////////
size_type n = matrix.N();
size_type m = matrix.M();
size_type n = matrix.N(); ++n;
size_type m = matrix.M(); ++m;
// ///////////////////////////////////////////////////////
// Test assignment operators and the copy constructor
......@@ -306,10 +306,11 @@ int main()
// ////////////////////////////////////////////////////////////////////////
// Test the FieldMatrix class
// ////////////////////////////////////////////////////////////////////////
typedef FieldMatrix<double,4,4>::size_type size_type;
FieldMatrix<double,4,4> fMatrix;
for (int i=0; i<fMatrix.N(); i++)
for (int j=0; j<fMatrix.M(); j++)
for (size_type i=0; i<fMatrix.N(); i++)
for (size_type j=0; j<fMatrix.M(); j++)
fMatrix[i][j] = (i+j)/3; // just anything
FieldVector<double,4> fvX;
FieldVector<double,4> fvY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment