43 #ifndef __Panzer_GatherSolution_Epetra_decl_hpp__
44 #define __Panzer_GatherSolution_Epetra_decl_hpp__
59 #include "Phalanx_Evaluator_Macros.hpp"
60 #include "Phalanx_MDField.hpp"
70 template<
typename LocalOrdinalT,
typename GlobalOrdinalT>
71 class UniqueGlobalIndexer;
84 template<
typename EvalT,
typename TRAITS,
typename LO,
typename GO>
97 template<
typename TRAITS,
typename LO,
typename GO>
101 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
117 globalIndexer_(indexer)
146 postRegistrationSetup(
147 typename TRAITS::SetupData d,
164 typename TRAITS::PreEvalData d);
176 typename TRAITS::EvalData d);
197 (globalIndexer_, pl));
271 std::vector<std::vector<PHX::MDField<const ScalarT, Cell, NODE>>>
291 template<
typename TRAITS,
typename LO,
typename GO>
295 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
311 globalIndexer_(indexer)
340 postRegistrationSetup(
341 typename TRAITS::SetupData d,
358 typename TRAITS::PreEvalData d);
371 typename TRAITS::EvalData d);
392 (globalIndexer_, pl));
461 std::vector<std::vector<PHX::MDField<const ScalarT, Cell, NODE>>>
481 template<
typename TRAITS,
typename LO,
typename GO>
485 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
501 globalIndexer_(indexer)
529 postRegistrationSetup(
530 typename TRAITS::SetupData d,
548 typename TRAITS::PreEvalData d);
561 typename TRAITS::EvalData d);
582 (globalIndexer_, pl));
673 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
675 #endif // Panzer_BUILD_HESSIAN_SUPPORT
677 #endif // __Panzer_GatherSolution_Epetra_decl_hpp__
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
bool hasTangentFields_
A flag indicating whether or not we have tangent fields.
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
bool hasTangentFields_
A flag indicating whether or not we have tangent fields.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
std::string sensitivitiesName_
Sets which gather operations have sensitivities.
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
panzer::Traits::Tangent EvalT
The evaluation type.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO >> &indexer)
Constructor.
panzer::Traits::Tangent::ScalarT ScalarT
The scalar type.
int gatherSeedIndex_
Which gather seed in the workset to use.
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Fields for storing the tangent components of the solution vector .
panzer::Traits::Residual::ScalarT ScalarT
The scalar type.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we're to be working with or .
bool applySensitivities_
Used by evaluateFields() to turn on/off a certain set of sensitivities.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we should be working with or .
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
panzer::Traits::Jacobian EvalT
The evaluation type.
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO >> &indexer)
Constructor.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we're to be working with or .
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO >> &indexer)
Constructor.
bool disableSensitivities_
Flag to disable sensitivities absolutely.
panzer::Traits::Jacobian::ScalarT ScalarT
The scalar type.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
panzer::Traits::Residual EvalT
The evaluation type.
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Fields for storing the tangent components of the solution vector .
Non-templated empty base class for template managers.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.