11 #ifndef PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
12 #define PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
14 #include "Phalanx_config.hpp"
15 #include "Phalanx_Evaluator_Macros.hpp"
16 #include "Phalanx_MDField.hpp"
20 #include "PanzerDiscFE_config.hpp"
29 template <
typename ScalarT,
typename LocalOrdinalT,
typename GlobalOrdinalT,
typename NodeT>
42 template <
typename EvalT,
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
63 { std::cout <<
"unspecialized version of \"GatherSolution_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
77 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
87 : globalIndexer_(indexer) {}
142 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
156 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
166 : globalIndexer_(indexer) {}
221 std::vector< std::vector< PHX::MDField<const RealT,Cell,NODE> > >
tangentFields_;
230 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
238 : globalIndexer_(indexer) {}
301 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Tpetra::Import< LO, GO, NodeT > ImportType
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Vector of global indexers, one for each field to gather, respectively.
Tpetra::Vector< S, LO, GO, NodeT > VectorType
Tpetra::Export< LO, GO, NodeT > ExportType
bool disableSensitivities_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
Tpetra::Map< LO, GO, NodeT > MapType
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Tpetra::Vector< S, LO, GO, NodeT > VectorType
PHX::View< LO * > blockOffsets_
The offset values of the blocked DOFs per element. Size of number of blocks in the product vector + 1...
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::Export< LO, GO, NodeT > ExportType
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::string globalDataKey_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
std::vector< int > productVectorBlockIndex_
std::vector< std::string > indexerNames_
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
std::vector< int > productVectorBlockIndex_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
bool useTimeDerivativeSolutionVector_
PHX::ViewOfViews< 2, PHX::View< const RealT ** > > tangentFieldsVoV_
panzer::Traits::Residual EvalT
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
TRAITS::RealType RealType
void evaluateFields(typename TRAITS::EvalData d)
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
Tpetra::Import< LO, GO, NodeT > ImportType
std::vector< int > fieldIds_
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< std::string > indexerNames_
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field.
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
std::vector< std::vector< PHX::MDField< const RealT, Cell, NODE > > > tangentFields_
Tpetra::Export< LO, GO, NodeT > ExportType
panzer::Traits::RealType RealT
Tpetra::Map< LO, GO, NodeT > MapType
bool useTimeDerivativeSolutionVector_
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
std::string globalDataKey_
panzer::Traits::Jacobian EvalT
virtual void preEvaluate(typename Traits::PreEvalData d)=0
bool useTimeDerivativeSolutionVector_
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
panzer::Traits::Tangent EvalT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for.
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
std::string globalDataKey_
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< int > productVectorBlockIndex_
#define TEUCHOS_ASSERT(assertion_test)
Tpetra::Vector< S, LO, GO, NodeT > VectorType
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
Tpetra::Map< LO, GO, NodeT > MapType
std::vector< std::string > indexerNames_
Tpetra::Import< LO, GO, NodeT > ImportType
Non-templated empty base class for template managers.
std::vector< int > fieldIds_
panzer::Traits::Residual::ScalarT ScalarT