Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT > Class Template Reference

Gathers tangent vectors dx/dp for computing df/dx*dx/dp + df/dp into the nodal fields of the field manager. More...

#include <Panzer_GatherTangent_Tpetra_decl.hpp>

Inheritance diagram for panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >:
Inheritance graph
[legend]

Public Member Functions

 GatherTangent_Tpetra (const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
 
 GatherTangent_Tpetra (const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::ParameterList &p)
 
void postRegistrationSetup (typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
 
void preEvaluate (typename TRAITS::PreEvalData d)
 
void evaluateFields (typename TRAITS::EvalData d)
 
virtual Teuchos::RCP
< CloneableEvaluator
clone (const Teuchos::ParameterList &pl) const
 
const PHX::FieldTag & getFieldTag (int i) const
 
- Public Member Functions inherited from panzer::EvaluatorWithBaseImpl< TRAITS >
void setDetailsIndex (const int di)
 An evaluator builder sets the details index. More...
 
- Public Member Functions inherited from panzer::DomainEvaluator
 DomainEvaluator (DomainType domain=ALL)
 Constructor. More...
 
virtual ~DomainEvaluator ()=default
 Default destructor. More...
 
void setDomain (const DomainType domain)
 Set the domain for the evaluator. More...
 
DomainType getDomain ()
 Get the domain for the evaluator. More...
 
virtual int cellStartIndex (const panzer::Workset &workset) const
 Returns the starting cell for the specified domain for a given workset. More...
 
virtual int cellEndIndex (const panzer::Workset &workset) const
 Returns the non-inclusive end cell for the specified domain for a given workset. More...
 
- Public Member Functions inherited from panzer::CloneableEvaluator
 CloneableEvaluator ()
 
virtual ~CloneableEvaluator ()
 

Private Types

typedef panzer::Traits::RealType ScalarT
 

Private Member Functions

 GatherTangent_Tpetra ()
 

Private Attributes

Teuchos::RCP< const
panzer::GlobalIndexer
globalIndexer_
 
std::vector< int > fieldIds_
 
std::vector< PHX::MDField
< ScalarT, Cell, NODE > > 
gatherFields_
 
Teuchos::RCP< std::vector
< std::string > > 
indexerNames_
 
bool useTimeDerivativeSolutionVector_
 
std::string globalDataKey_
 
Teuchos::RCP< const
TpetraLinearObjContainer
< double, LO, GO, NodeT > > 
tpetraContainer_
 

Additional Inherited Members

- Public Types inherited from panzer::DomainEvaluator
enum  DomainType : int {
  OWNED =0, GHOST =1, REAL =2, VIRTUAL =3,
  EXTERNAL =4, ALL =5
}
 Domain types supported by worksets. More...
 
- Protected Attributes inherited from panzer::EvaluatorWithBaseImpl< TRAITS >
WorksetDetailsAccessor wda
 

Detailed Description

template<typename EvalT, typename TRAITS, typename LO, typename GO, typename NodeT = panzer::TpetraNodeType>
class panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >

Gathers tangent vectors dx/dp for computing df/dx*dx/dp + df/dp into the nodal fields of the field manager.

This evaluator is very similar to GatherSolution, however it always gathers into fields of type double, and it is a no-op if the global evaluation data container does not exist (which is an error for GatherSolution).

Currently makes an assumption that the stride is constant for dofs and that the nmber of dofs is equal to the size of the solution names vector.

Definition at line 78 of file Panzer_GatherTangent_Tpetra_decl.hpp.

Member Typedef Documentation

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
typedef panzer::Traits::RealType panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::ScalarT
private

Definition at line 107 of file Panzer_GatherTangent_Tpetra_decl.hpp.

Constructor & Destructor Documentation

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::GatherTangent_Tpetra ( const Teuchos::RCP< const panzer::GlobalIndexer > &  indexer)
inline

Definition at line 84 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT >
panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::GatherTangent_Tpetra ( const Teuchos::RCP< const panzer::GlobalIndexer > &  indexer,
const Teuchos::ParameterList p 
)

Definition at line 62 of file Panzer_GatherTangent_Tpetra_impl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::GatherTangent_Tpetra ( )
private

Member Function Documentation

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT >
void panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::postRegistrationSetup ( typename TRAITS::SetupData  d,
PHX::FieldManager< TRAITS > &  vm 
)

Definition at line 104 of file Panzer_GatherTangent_Tpetra_impl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT >
void panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::preEvaluate ( typename TRAITS::PreEvalData  d)

Definition at line 122 of file Panzer_GatherTangent_Tpetra_impl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT >
void panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::evaluateFields ( typename TRAITS::EvalData  d)

Definition at line 149 of file Panzer_GatherTangent_Tpetra_impl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
virtual Teuchos::RCP<CloneableEvaluator> panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::clone ( const Teuchos::ParameterList pl) const
inlinevirtual

Implements panzer::CloneableEvaluator.

Definition at line 97 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
const PHX::FieldTag& panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::getFieldTag ( int  i) const
inline

Definition at line 101 of file Panzer_GatherTangent_Tpetra_decl.hpp.

Member Data Documentation

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
Teuchos::RCP<const panzer::GlobalIndexer> panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::globalIndexer_
private

Definition at line 112 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
std::vector<int> panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::fieldIds_
private

Definition at line 113 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
std::vector< PHX::MDField<ScalarT,Cell,NODE> > panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::gatherFields_
private

Definition at line 115 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
Teuchos::RCP<std::vector<std::string> > panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::indexerNames_
private

Definition at line 117 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
bool panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::useTimeDerivativeSolutionVector_
private

Definition at line 118 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
std::string panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::globalDataKey_
private

Definition at line 119 of file Panzer_GatherTangent_Tpetra_decl.hpp.

template<typename EvalT , typename TRAITS , typename LO , typename GO , typename NodeT = panzer::TpetraNodeType>
Teuchos::RCP<const TpetraLinearObjContainer<double,LO,GO,NodeT> > panzer::GatherTangent_Tpetra< EvalT, TRAITS, LO, GO, NodeT >::tpetraContainer_
private

Definition at line 121 of file Panzer_GatherTangent_Tpetra_decl.hpp.


The documentation for this class was generated from the following files: