43#ifndef PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
44#define PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
46#include "Phalanx_config.hpp"
47#include "Phalanx_Evaluator_Macros.hpp"
48#include "Phalanx_MDField.hpp"
50#include "Teuchos_ParameterList.hpp"
52#include "PanzerDiscFE_config.hpp"
61template <
typename ScalarT,
typename LocalOrdinalT,
typename GlobalOrdinalT,
typename NodeT>
62class BlockedTpetraLinearObjContainer;
65class BlockedDOFManager;
74template <
typename EvalT,
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
77 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
86 const Teuchos::ParameterList& p);
88 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
95 { std::cout <<
"unspecialized version of \"GatherSolution_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
96 TEUCHOS_ASSERT(
false); }
109template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
112 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
119 : globalIndexer_(indexer) {}
122 const Teuchos::ParameterList& p);
127 void preEvaluate(
typename TRAITS::PreEvalData d);
131 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
174 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
188template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
191 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
198 : gidIndexer_(indexer) {}
201 const Teuchos::ParameterList& p);
206 void preEvaluate(
typename TRAITS::PreEvalData d);
210 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
243 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
251template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
254 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
259 : globalIndexer_(indexer) {}
262 const Teuchos::ParameterList& p);
267 void preEvaluate(
typename TRAITS::PreEvalData d);
271 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
322#ifdef Panzer_BUILD_HESSIAN_SUPPORT
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
bool disableSensitivities_
panzer::Traits::Jacobian::ScalarT ScalarT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
std::vector< int > fieldIds_
panzer::Traits::Jacobian EvalT
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< std::string > indexerNames_
Tpetra::Map< LO, GO, NodeT > MapType
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
std::vector< int > productVectorBlockIndex_
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
bool useTimeDerivativeSolutionVector_
TRAITS::RealType RealType
GatherSolution_BlockedTpetra()
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Tpetra::Vector< S, LO, GO, NodeT > VectorType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Tpetra::Export< LO, GO, NodeT > ExportType
Tpetra::Import< LO, GO, NodeT > ImportType
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
PHX::View< LO * > blockOffsets_
The offset values of the blocked DOFs per element. Size of number of blocks in the product vector + 1...
std::string globalDataKey_
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
bool useTimeDerivativeSolutionVector_
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
GatherSolution_BlockedTpetra()
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
std::string globalDataKey_
panzer::Traits::Residual::ScalarT ScalarT
panzer::Traits::Residual EvalT
std::vector< int > productVectorBlockIndex_
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for.
Tpetra::Import< LO, GO, NodeT > ImportType
std::vector< std::string > indexerNames_
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Tpetra::Export< LO, GO, NodeT > ExportType
Tpetra::Map< LO, GO, NodeT > MapType
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Vector of global indexers, one for each field to gather, respectively.
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
Tpetra::Vector< S, LO, GO, NodeT > VectorType
Tpetra::Import< LO, GO, NodeT > ImportType
Tpetra::Export< LO, GO, NodeT > ExportType
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
GatherSolution_BlockedTpetra()
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Teuchos::RCP< const BlockedDOFManager > gidIndexer_
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
panzer::Traits::Tangent EvalT
Tpetra::Map< LO, GO, NodeT > MapType
std::vector< std::string > indexerNames_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
bool useTimeDerivativeSolutionVector_
std::string globalDataKey_
Tpetra::Vector< S, LO, GO, NodeT > VectorType
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< int > fieldIds_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Gathers solution values from the Newton solution vector into the nodal fields of the field manager.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
void evaluateFields(typename TRAITS::EvalData d)
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)