Skip to content
Snippets Groups Projects
Commit 623abaa7 authored by Oliver Sander's avatar Oliver Sander
Browse files

Minor stylistic improvements, and a fix for an actual error in a comment

In particular, getting rid of the German comment is necessary because my venerable ddd
debugger frontend chokes on umlauts.
parent 55d6576e
No related branches found
No related tags found
No related merge requests found
......@@ -20,16 +20,14 @@ struct Builder<Dune::BCRSMatrix<B,A> >
{
void randomBuild(int rows, int cols)
{
int maxNZCols = 15; // maximal number of nonzeros per column
int maxNZCols = 15; // maximal number of nonzeros per row
{
Dune::BCRSMatrix<B,A> matrix( rows, cols, Dune::BCRSMatrix<B,A>::random );
for(int i=0; i<rows; ++i) matrix.setrowsize(i,maxNZCols);
for(int i=0; i<rows; ++i)
matrix.setrowsize(i,maxNZCols);
matrix.endrowsizes();
////////////////////////
//whrend des Aufstellens
// oder wenn es nicht anders geht auch davor.
// During setup, or before, if there is no other way.
for(int i=0; i<rows; ++i) {
if(i<cols)
matrix.addindex(i,i);
......
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