Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #4090

Closed
Open
Created Dec 19, 2018 by James Willenbring@jmwilleMaintainer

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.

Assignee
Assign to
Time tracking