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"
83 template<
typename EvalT,
typename TRAITS,
typename LO,
typename GO>
96 template<
typename TRAITS,
typename LO,
typename GO>
100 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
114 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer)
116 globalIndexer_(indexer)
133 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer,
134 const Teuchos::ParameterList& p);
145 postRegistrationSetup(
146 typename TRAITS::SetupData d,
163 typename TRAITS::PreEvalData d);
175 typename TRAITS::EvalData d);
189 virtual Teuchos::RCP<CloneableEvaluator>
191 const Teuchos::ParameterList& pl)
const
196 (globalIndexer_, pl));
246 Teuchos::RCP<Epetra_Vector>
x_;
252 Teuchos::RCP<panzer::EpetraVector_ReadOnly_GlobalEvaluationData>
270 std::vector<std::vector<PHX::MDField<const ScalarT, Cell, NODE>>>
290 template<
typename TRAITS,
typename LO,
typename GO>
294 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
308 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer)
310 globalIndexer_(indexer)
327 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer,
328 const Teuchos::ParameterList& p);
339 postRegistrationSetup(
340 typename TRAITS::SetupData d,
357 typename TRAITS::PreEvalData d);
370 typename TRAITS::EvalData d);
384 virtual Teuchos::RCP<CloneableEvaluator>
386 const Teuchos::ParameterList& pl)
const
391 (globalIndexer_, pl));
441 Teuchos::RCP<Epetra_Vector>
x_;
447 Teuchos::RCP<panzer::EpetraVector_ReadOnly_GlobalEvaluationData>
460 std::vector<std::vector<PHX::MDField<const ScalarT, Cell, NODE>>>
480 template<
typename TRAITS,
typename LO,
typename GO>
484 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
498 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer)
500 globalIndexer_(indexer)
516 const Teuchos::RCP<const panzer::GlobalIndexer>& indexer,
517 const Teuchos::ParameterList& p);
528 postRegistrationSetup(
529 typename TRAITS::SetupData d,
547 typename TRAITS::PreEvalData d);
560 typename TRAITS::EvalData d);
574 virtual Teuchos::RCP<CloneableEvaluator>
576 const Teuchos::ParameterList& pl)
const
581 (globalIndexer_, pl));
654 Teuchos::RCP<Epetra_Vector>
x_;
660 Teuchos::RCP<panzer::EpetraVector_ReadOnly_GlobalEvaluationData>
672#ifdef Panzer_BUILD_HESSIAN_SUPPORT
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Constructor.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
bool disableSensitivities_
Flag to disable sensitivities absolutely.
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
panzer::Traits::Jacobian::ScalarT ScalarT
The scalar type.
GatherSolution_Epetra()
Default Constructor (disabled).
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
std::string sensitivitiesName_
Sets which gather operations have sensitivities.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
bool applySensitivities_
Used by evaluateFields() to turn on/off a certain set of sensitivities.
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
panzer::Traits::Jacobian EvalT
The evaluation type.
int gatherSeedIndex_
Which gather seed in the workset to use.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we're to be working with or .
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Constructor.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
panzer::Traits::Residual::ScalarT ScalarT
The scalar type.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
bool hasTangentFields_
A flag indicating whether or not we have tangent fields.
panzer::Traits::Residual EvalT
The evaluation type.
GatherSolution_Epetra()
Default Constructor (disabled).
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we're to be working with or .
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Fields for storing the tangent components of the solution vector .
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
bool useTimeDerivativeSolutionVector_
A flag indicating whether we should be working with or .
std::vector< int > fieldIds_
Field IDs, which need to be mapped.
std::string globalDataKey_
The key identifying the GlobalEvaluationData.
GatherSolution_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Constructor.
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
The fields to be gathered.
std::vector< std::string > indexerNames_
A list of the names of the fields to be gathered.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Create a copy.
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Fields for storing the tangent components of the solution vector .
bool hasTangentFields_
A flag indicating whether or not we have tangent fields.
GatherSolution_Epetra()
Default Constructor (disabled).
panzer::Traits::Tangent::ScalarT ScalarT
The scalar type.
panzer::Traits::Tangent EvalT
The evaluation type.
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Maps the local (field, element, basis) triplet to a global ID for scattering.
Teuchos::RCP< panzer::EpetraVector_ReadOnly_GlobalEvaluationData > xEvRoGed_
The GlobalEvaluationData containing both the owned and ghosted vectors.
Teuchos::RCP< Epetra_Vector > x_
The solution vector.
Gathers solution values from the Newton solution vector into the nodal fields of the field manager.