1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// *****************************************************************************
/*!
  \file      src/UnitTest/QuietCerr.hpp
  \copyright 2012-2015 J. Bakosi,
             2016-2018 Los Alamos National Security, LLC.,
             2019-2021 Triad National Security, LLC.,
             2022-2025 J. Bakosi
             All rights reserved. See the LICENSE file for details.
  \brief     Charm++ nodegroup to quiet std::cerr in a thread-safe fashion
  \details   Charm++ nodegroup to quiet std::cerr in a thread-safe fashion.
*/
// *****************************************************************************
#ifndef QuietCerr_h
#define QuietCerr_h

#include "NoWarning/quietcerr.decl.h"<--- Include file: "NoWarning/quietcerr.decl.h" not found.

namespace tk {

//! Chare state Charm++ chare nodegroup class
//! \details Instantiations of QuietCerr comprise a processor aware Charm++
//!   chare node group. When instantiated, a new object is created on each
//!   compute node and not more (as opposed to individual chares or chare array
//!   object elements). See also the Charm++ interface file quietcerr.ci.
class QuietCerr : public CBase_QuietCerr {

  public:
    //! Quiet std::cerr by redirecting its stream state to a stringstream
    static void quiet();

    //! Destructor: restore std::cerr's stream state
    ~QuietCerr() override;
};

} // tk::

#endif // QuietCerr_h