enrico icon indicating copy to clipboard operation
enrico copied to clipboard

Ability to suppress diagnostics

Open RonRahaman opened this issue 5 years ago • 1 comments

Should we implement a way to suppress diagnostic messages? Currently, this includes the sanity check for volume calculations. For the disjoint communicators, I also have some diagnostics about the rank layout that I'd like to keep. But these both get pretty verbose in large-ish runs.

I'm considering either:

  • A -v runtime flag
  • The NDEBUG macro. This is defined by CMake for release builds. It's also understood by assert() as specified by the C++ standard. However, it doesn't appear to affect the behavior of Ensures or Expects in GSL.

I'm tending towards a -v flag.

RonRahaman avatar Mar 09 '20 16:03 RonRahaman

Yes, I agree that a -v flag is probably the simplest way to do this.

paulromano avatar Mar 11 '20 15:03 paulromano