Skip to content

Commit

Permalink
TPZGenMatrix::Print was rather useless
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandini committed Jul 1, 2021
1 parent cde74da commit 08816cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Matrix/pzshtmat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ void TPZGenMatrix<TObj>::Print (const char *c, ostream & out) const {
cout << "NULL TPZGenMatrix<TObj>\n";
return;
}
// out << c << endl;
// out << "TPZGenMatrix<TObj> Rows = " << this->fRows << " columns = " << this->fCols << endl;
// for (int64_t i=0; i<this->fRows; i++) {
// out << "\n row " << i;
// for (int64_t j=0; j<this->fCols; j++) {
// if ( !(j%6) ) out << "\n";
// out << " " << fMem[(i*this->fCols)+j];
// }
// }
// out << "\n";
out << c << endl;
out << "TPZGenMatrix<TObj> Rows = " << this->fRows << " columns = " << this->fCols << endl;
for (int64_t i=0; i<this->fRows; i++) {
out << "\n row " << i;
for (int64_t j=0; j<this->fCols; j++) {
if ( !(j%6) ) out << "\n";
out << " " << fMem[(i*this->fCols)+j];
}
}
out << "\n";
return;
}

Expand Down

0 comments on commit 08816cd

Please sign in to comment.