Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_OutputStream_DefaultImpl.cpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
12 #include "Teuchos_FancyOStream.hpp"
13 #include "Teuchos_Assert.hpp"
14 
15 namespace panzer {
16 
18  { }
19 
21  { }
22 
25  {
26  m_out = os;
31  }
32 
35  {
36  return m_out;
37  }
38 
40  {
41  return *m_out;
42  }
43 
45  {
46  return *m_pout;
47  }
48 
50  {
51  m_level = vl;
52  }
53 
55  {
56  return m_level;
57  }
58 
60  doOutput(EVerbosityLevel vl, bool only_for_exact_level) const
61  {
62  if ( !only_for_exact_level &&
63  (Teuchos::as<int>(vl) >= Teuchos::as<int>(m_level)) )
64  return true;
65 
66  if (only_for_exact_level && (vl == m_level) )
67  return true;
68 
69  return false;
70  }
71 
72 }
void setOStream(const Teuchos::RCP< Teuchos::FancyOStream > &os)
Teuchos::RCP< Teuchos::FancyOStream > m_out
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< Teuchos::FancyOStream > getOStream() const
bool doOutput(EVerbosityLevel vl, bool only_for_exact_level=false) const
Returns true if vl is equal to or greater than the object&#39;s verbosity level.
Teuchos::RCP< Teuchos::FancyOStream > m_pout
basic_FancyOStream & setOutputToRootOnly(const int rootRank)
RCP< std::basic_ostream< char_type, traits_type > > getOStream()
void copyAllOutputOptions(const basic_FancyOStream< CharT, Traits > &oStream)