Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_GlobalData.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 
11 #include "Panzer_GlobalData.hpp"
12 #include <ostream>
13 
14 namespace panzer {
15 
17  createGlobalData(bool build_default_os, int print_process)
18  {
20  gd->pl = Teuchos::rcp(new panzer::ParamLib);
21 
22  if (build_default_os) {
23  gd->os = Teuchos::rcp(new Teuchos::FancyOStream(Teuchos::rcpFromRef(std::cout)));
24  gd->os->setOutputToRootOnly(print_process);
25  }
26 
27  return gd;
28  }
29 
30 }
Teuchos::RCP< panzer::ParamLib > pl
Sacado scalar parameter library.
Teuchos::RCP< Teuchos::FancyOStream > os
ostream for redirecting all panzer output for a particular instantiation.
Teuchos::RCP< panzer::GlobalData > createGlobalData(bool build_default_os, int print_process)
Struct for global data to be stored.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Sacado::ScalarParameterLibrary< panzer::EvaluationTraits > ParamLib
basic_FancyOStream & setOutputToRootOnly(const int rootRank)