Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
35 
37 //
38 // Forward Declarations
39 //
41 
42 namespace panzer
43 {
44  class GlobalIndexer;
45 }
46 
47 namespace 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
129  preEvaluate(
130  typename TRAITS::PreEvalData d);
131 
140  void
142  typename TRAITS::EvalData d);
143 
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 
196 
202 
206  std::string globalDataKey_;
207 
214 
219 
220  }; // end of class GatherTangent_BlockedEpetra
221 
222 } // end of namespace panzer
223 
224 #endif // __Panzer_GatherTangent_BlockedEpetra_decl_hpp__
bool useTimeDerivativeSolutionVector_
A flag indicating whether we&#39;re to be working with or .
GatherTangent_BlockedEpetra(const std::vector< Teuchos::RCP< const GlobalIndexer >> &indexers)
Constructor.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
Teuchos::RCP< panzer::BlockedVector_ReadOnly_GlobalEvaluationData > xBvRoGed_
The GlobalEvaluationData containing both the owned and ghosted tangent vectors.
Teuchos::RCP< std::vector< std::string > > indexerNames_
A list of the names of the fields to be gathered.
std::vector< int > indexerIds_
The block index into indexers_.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void preEvaluate(typename TRAITS::PreEvalData d)
Pre-Evaluate: Sets the tangent vector.
std::vector< Teuchos::RCP< const GlobalIndexer > > indexers_
These map the local (field, element, basis) triplet to a global ID for scattering.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
GatherTangent_BlockedEpetra()
Default Constructor (disabled)
std::vector< int > subFieldIds_
Sub-field IDs, which need to be mapped.
void evaluateFields(typename TRAITS::EvalData d)
Evaluate Fields: Gather operation.
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
Post-Registration Setup.
Non-templated empty base class for template managers.