Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_LOCPair_GlobalEvaluationData.hpp
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#ifndef __Panzer_LOCPair_GlobalEvaluationData_hpp__
12#define __Panzer_LOCPair_GlobalEvaluationData_hpp__
13
14#include "PanzerDiscFE_config.hpp"
15#include "Panzer_Traits.hpp"
17
18namespace panzer {
19
24public:
26 Teuchos::RCP<const LinearObjFactory<panzer::Traits> > lof,
27 int initParam) : lof_(lof)
28 {
29 globalLOC_ = lof_->buildLinearObjContainer();
30 ghostedLOC_ = lof_->buildGhostedLinearObjContainer();
31
32 lof_->initializeContainer(initParam,*globalLOC_);
33 lof_->initializeGhostedContainer(initParam,*ghostedLOC_);
34 }
35
36 virtual void ghostToGlobal(int mem) { lof_->ghostToGlobalContainer(*ghostedLOC_,*globalLOC_,mem); }
37 virtual void globalToGhost(int mem) { lof_->globalToGhostContainer(*globalLOC_,*ghostedLOC_,mem); }
38
39 virtual void initializeData() { ghostedLOC_->initialize(); }
40
41 Teuchos::RCP<LinearObjContainer> getGhostedLOC() const { return ghostedLOC_; }
42 Teuchos::RCP<LinearObjContainer> getGlobalLOC() const { return globalLOC_; }
43
44 virtual bool requiresDirichletAdjustment() const { return false; }
45
46private:
47 Teuchos::RCP<LinearObjContainer> ghostedLOC_, globalLOC_;
48
49 Teuchos::RCP<const LinearObjFactory<panzer::Traits> > lof_;
50};
51
52}
53
54#endif
LOCPair_GlobalEvaluationData(Teuchos::RCP< const LinearObjFactory< panzer::Traits > > lof, int initParam)
Teuchos::RCP< LinearObjContainer > getGhostedLOC() const
Teuchos::RCP< const LinearObjFactory< panzer::Traits > > lof_
Teuchos::RCP< LinearObjContainer > getGlobalLOC() const