43 #ifndef __Panzer_SGEpetraLinearObjFactory_decl_hpp__
44 #define __Panzer_SGEpetraLinearObjFactory_decl_hpp__
46 #include "Panzer_config.hpp"
52 #include "Epetra_Map.h"
53 #include "Epetra_CrsGraph.h"
54 #include "Epetra_Import.h"
55 #include "Epetra_Export.h"
57 #include "Panzer_config.hpp"
60 #include "Panzer_EpetraLinearObjFactory.hpp"
66 #include "Stokhos_OrthogPolyBasis.hpp"
67 #include "Stokhos_EpetraVectorOrthogPoly.hpp"
77 template <
typename Traits,
typename LocalOrdinalT>
115 bool zeroVectorRows=
false,
bool adjustX=
false)
const;
125 virtual Teuchos::MpiComm<int>
getComm()
const;
128 template <
typename EvalT>
130 {
return epetraFact_->template buildScatter<EvalT>(); }
133 template <
typename EvalT>
135 {
return epetraFact_->template buildGather<EvalT>(); }
138 template <
typename EvalT>
140 {
return epetraFact_->template buildGatherTangent<EvalT>(); }
143 template <
typename EvalT>
145 {
return epetraFact_->template buildGatherOrientation<EvalT>(); }
148 template <
typename EvalT>
150 {
return epetraFact_->template buildScatterDirichlet<EvalT>(); }
192 {
return epetraFact_->getUniqueGlobalIndexerBase(); }
Teuchos::RCP< const Stokhos::OrthogPolyExpansion< int, double > > getExpansion() const
Accessor for the expansion object.
virtual void applyDirichletBCs(const LinearObjContainer &counter, LinearObjContainer &result) const
Teuchos::RCP< const panzer::UniqueGlobalIndexerBase > getUniqueGlobalIndexerBase() const
Get the unique global indexer this factory was created with.
virtual Teuchos::MpiComm< int > getComm() const
virtual void readVector(const std::string &identifier, LinearObjContainer &loc, int id) const
Teuchos::RCP< panzer::CloneableEvaluator > buildScatterDirichlet() const
Use preconstructed dirichlet scatter evaluators.
Teuchos::RCP< panzer::CloneableEvaluator > buildScatter() const
Use preconstructed scatter evaluators.
virtual Teuchos::RCP< LinearObjContainer > buildPrimitiveLinearObjContainer() const
virtual void adjustForDirichletConditions(const LinearObjContainer &localBCRows, const LinearObjContainer &globalBCRows, LinearObjContainer &ghostedObjs, bool zeroVectorRows=false, bool adjustX=false) const
void initializeGhostedContainer(int mem, LinearObjContainer &loc) const
Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > expansion_
Teuchos::RCP< EpetraLinearObjFactory< Traits, LocalOrdinalT > > epetraFact_
void initializeContainer(int mem, LinearObjContainer &loc) const
Teuchos::RCP< const Epetra_Map > getSGBlockMap() const
get the block map needed by Stokhos to describe the parallel layout of the SG unknowns ...
virtual Teuchos::RCP< LinearObjContainer > buildPrimitiveGhostedLinearObjContainer() const
Teuchos::RCP< const EpetraExt::MultiComm > globalMultiComm_
Teuchos::RCP< const Epetra_Map > sgBlockMap_
virtual void ghostToGlobalContainer(const LinearObjContainer &ghostContainer, LinearObjContainer &container, int mem) const
SGEpetraLinearObjFactory(const Teuchos::RCP< EpetraLinearObjFactory< Traits, LocalOrdinalT > > &epetraFact, const Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > &expansion, const Teuchos::RCP< const EpetraExt::MultiComm > &globalMultiComm)
Teuchos::RCP< panzer::CloneableEvaluator > buildGatherTangent() const
Use preconstructed gather evaluators.
Teuchos::RCP< const Epetra_Map > getMap()
get the map from the matrix, this is the map for the solution vector
virtual Teuchos::RCP< LinearObjContainer > buildGhostedLinearObjContainer() const
virtual void globalToGhostContainer(const LinearObjContainer &container, LinearObjContainer &ghostContainer, int mem) const
virtual void writeVector(const std::string &identifier, const LinearObjContainer &loc, int id) const
virtual Teuchos::RCP< LinearObjContainer > buildLinearObjContainer() const
virtual ~SGEpetraLinearObjFactory()
Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > getExpansion()
Accessor for the expansion object.
Teuchos::RCP< panzer::CloneableEvaluator > buildGather() const
Use preconstructed gather evaluators.
#define TEUCHOS_ASSERT(assertion_test)
Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > getVectorOrthogPoly() const
Set orthog poly object, this serves as a template for converting vectors to block vectors...
Teuchos::RCP< panzer::CloneableEvaluator > buildGatherOrientation() const
Use preconstructed gather evaluators.
Teuchos::RCP< EpetraLinearObjFactory< Traits, LocalOrdinalT > > getEpetraFactory() const