Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_GatherSolution_Epetra_Hessian.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_GatherSolution_Epetra_Hessian_hpp__
12 #define __Panzer_GatherSolution_Epetra_Hessian_hpp__
13 
14 // Only do this if required by the user.
15 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
16 
17 // the includes for this file come in as a result of the includes in the main
18 // Epetra gather solution file
19 
20 namespace panzer
21 {
32  template<typename TRAITS, typename LO, typename GO>
33  class GatherSolution_Epetra<panzer::Traits::Hessian, TRAITS, LO, GO>
34  :
35  public panzer::EvaluatorWithBaseImpl<TRAITS>,
36  public PHX::EvaluatorDerived<panzer::Traits::Hessian, TRAITS>,
38  {
39  public:
40 
51  :
52  globalIndexer_(indexer)
53  {
54  } // end of Constructor
55 
69  const Teuchos::ParameterList& p);
70 
79  void
80  postRegistrationSetup(
81  typename TRAITS::SetupData d,
83 
100  void
101  preEvaluate(
102  typename TRAITS::PreEvalData d);
103 
113  void
114  evaluateFields(
115  typename TRAITS::EvalData d);
116 
131  const Teuchos::ParameterList& pl) const
132  {
133  using panzer::Traits;
134  using Teuchos::rcp;
136  (globalIndexer_, pl));
137  } // end of clone()
138 
139  private:
140 
144  typedef typename panzer::Traits::Hessian EvalT;
145 
150 
156 
160  std::vector<std::string> indexerNames_;
161 
165  std::vector<int> fieldIds_;
166 
170  std::vector< PHX::MDField<ScalarT, Cell, NODE>> gatherFields_;
171 
175  std::vector< PHX::MDField<ScalarT, Cell, NODE>> sensFields_;
176 
182 
186  std::string globalDataKey_;
187 
191  std::string sensitivitiesName_;
192 
199 
205 
211 
216 
222 
228 
233 
240 
247 
252 
253  }; // end of class GatherSolution_Epetra (Hessian Specialization)
254 
255 } // end of namespace panzer
256 
257 #endif // Panzer_BUILD_HESSIAN_SUPPORT
258 
259 #endif // __Panzer_GatherSolution_Epetra_Hessian_hpp__
bool secondApplySensitivities_
Used by evaluateFields() to turn on/off the second derivative sensitivities.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > sensFields_
The sensitivity fields.
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
std::string sensitivities2ndPrefix_
The prefix for the field containing the second sensitivities.
std::string sensitivitiesName_
Sets which gather operations have sensitivities.
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
bool secondSensitivitiesAvailable_
A flag indicating whether or not we&#39;re to be working with the second derivative sensitivities.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted solution vectors.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
bool firstApplySensitivities_
Used by evaluateFields() to turn on/off the first derivative sensitivities.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we&#39;re to be working with or .
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
bool firstSensitivitiesAvailable_
A flag indicating whether or not we&#39;re to be working with the first derivative sensitivities.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > dxEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted derivative vectors.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
Non-templated empty base class for template managers.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Constructor.