Tpetra: Add macro for creating verbose debug output on a process
Created by: mhoemmen
@trilinos/tpetra See my comment on PR https://github.com/trilinos/Trilinos/pull/4089.
#define TPETRA_PRINTLN_LOCAL( out, myRank, stuff ) \
do { \
std::ostringstream tpl_out; \
tpl_out << "(Proc " << myRank << ") " << stuff << std::endl; \
out << tpl_out.str (); \
} while (false)
This would factor out a common pattern inside Tpetra. It would work like TEUCHOS_TEST_FOR_EXCEPTION
, in that stuff
could be an expression like "thing0: " << thing0 << ", thing1" << thing1
.