Panzer Version of the Day
Loading...
Searching...
No Matches
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
14namespace panzer {
15
16 Teuchos::RCP<panzer::GlobalData>
17 createGlobalData(bool build_default_os, int print_process)
18 {
19 Teuchos::RCP<panzer::GlobalData> gd = Teuchos::rcp(new panzer::GlobalData);
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::GlobalData > createGlobalData(bool build_default_os, int print_process)
Sacado::ScalarParameterLibrary< panzer::EvaluationTraits > ParamLib
Struct for global data to be stored.