Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_GatherTangent_BlockedEpetra_decl.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_GatherTangent_BlockedEpetra_decl_hpp__
12#define __Panzer_GatherTangent_BlockedEpetra_decl_hpp__
13
15//
16// Include Files
17//
19
20// Panzer
23#include "Panzer_Dimension.hpp"
24#include "PanzerDiscFE_config.hpp"
26#include "Panzer_Traits.hpp"
27
28// Phalanx
29#include "Phalanx_config.hpp"
30#include "Phalanx_Evaluator_Macros.hpp"
31#include "Phalanx_MDField.hpp"
32
33// Teuchos
34#include "Teuchos_ParameterList.hpp"
35
37//
38// Forward Declarations
39//
41
42namespace panzer
43{
44 class GlobalIndexer;
45}
46
47namespace panzer
48{
65 template<typename EvalT, typename TRAITS, typename LO, typename GO>
67 :
68 public panzer::EvaluatorWithBaseImpl<TRAITS>,
69 public PHX::EvaluatorDerived<EvalT, TRAITS>,
71 {
72 public:
73
83 const std::vector<Teuchos::RCP<const GlobalIndexer>>&
84 indexers)
85 :
86 indexers_(indexers)
87 {
88 } // end of Constructor
89
102 const std::vector<Teuchos::RCP<const GlobalIndexer>>&
103 indexers,
104 const Teuchos::ParameterList& p);
105
115 void
117 typename TRAITS::SetupData d,
119
128 void
130 typename TRAITS::PreEvalData d);
131
140 void
142 typename TRAITS::EvalData d);
143
155 virtual Teuchos::RCP<CloneableEvaluator>
157 const Teuchos::ParameterList& pl) const
158 {
159 using Teuchos::rcp;
160 return rcp(new
162 } // end of clone()
163
164 private:
165
169 typedef typename EvalT::ScalarT ScalarT;
170
175 std::vector<Teuchos::RCP<const GlobalIndexer>> indexers_;
176
180 std::vector<int> indexerIds_; // block index
181
185 std::vector<int> subFieldIds_; // sub field numbers
186
190 std::vector< PHX::MDField<ScalarT, Cell, NODE>> gatherFields_;
191
195 Teuchos::RCP<std::vector<std::string>> indexerNames_;
196
202
206 std::string globalDataKey_;
207
212 Teuchos::RCP<panzer::BlockedVector_ReadOnly_GlobalEvaluationData>
214
219
220 }; // end of class GatherTangent_BlockedEpetra
221
222} // end of namespace panzer
223
224#endif // __Panzer_GatherTangent_BlockedEpetra_decl_hpp__
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< Teuchos::RCP< const GlobalIndexer > > indexers_
These map the local (field, element, basis) triplet to a global ID for scattering.
Teuchos::RCP< std::vector< std::string > > indexerNames_
A list of the names of the fields to be gathered.
Teuchos::RCP< panzer::BlockedVector_ReadOnly_GlobalEvaluationData > xBvRoGed_
The GlobalEvaluationData containing both the owned and ghosted tangent vectors.
void preEvaluate(typename TRAITS::PreEvalData d)
Pre-Evaluate: Sets the tangent vector.
GatherTangent_BlockedEpetra(const std::vector< Teuchos::RCP< const GlobalIndexer > > &indexers)
Constructor.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we're to be working with or .
std::vector< int > indexerIds_
The block index into indexers_.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
GatherTangent_BlockedEpetra()
Default Constructor (disabled)
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
Post-Registration Setup.
void evaluateFields(typename TRAITS::EvalData d)
Evaluate Fields: Gather operation.
std::vector< int > subFieldIds_
Sub-field IDs, which need to be mapped.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.