60 print(Teuchos::FancyOStream &out,
const VerbLevel verbLevel)
const {
62 if (verbLevel &
Debug) {
63 auto graph = lclLWGraph_.getGraph();
64 RCP<const Map> col_map = importMap_.is_null() ? domainMap_ : importMap_;
65 int mypid = col_map->getComm()->getRank();
68 std::ostringstream ss;
69 ss <<
"[pid " << mypid <<
"] num entries=" << graph.entries.size();
70 out << ss.str() << std::endl;
73 const size_t numRows = graph.numRows();
74 auto rowPtrs = graph.row_map;
75 auto columns = graph.entries;
76 for (
size_t i=0; i < numRows; ++i) {
77 std::ostringstream ss;
78 ss <<
"[pid " << mypid <<
"] row " << domainMap_->getGlobalElement(i) <<
":";
79 ss <<
" (numEntries=" << rowPtrs(i+1)-rowPtrs(i) <<
")";
81 auto rowView = graph.rowConst(i);
82 for (LO j = 0; j < rowView.length; j++) {
83 ss <<
" " << col_map->getGlobalElement(rowView.colidx(j));
85 out << ss.str() << std::endl;