Skip to content
Snippets Groups Projects
Commit 153c9aa5 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Replaced std::endl in MatrixWriter to remove implicit I/O synchronizations

parent 8d05720b
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ bool MatrixWriter< Matrix >::writeToGnuplot( std::ostream& str,
{
RealType elementValue = matrix.getElement( row, column );
if( elementValue != ( RealType ) 0.0 )
str << column << " " << row << " " << elementValue << std::endl;
str << column << " " << row << " " << elementValue << "\n";
}
if( verbose )
std::cout << "Drawing the row " << row << " \r" << std::flush;
......@@ -86,7 +86,7 @@ bool MatrixWriter< Matrix >::writeEpsBody( std::ostream& str,
{
str << ( column - lastColumn ) * elementSize
<< " " << -( row - lastRow ) * elementSize
<< " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke" << std::endl;
<< " translate newpath 0 0 " << elementSize << " " << elementSize << " rectstroke\n";
lastColumn = column;
lastRow = row;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment