11 #ifndef __Panzer_STK_ParameterListCallbackBlocked_hpp__
12 #define __Panzer_STK_ParameterListCallbackBlocked_hpp__
14 #include "PanzerAdaptersSTK_config.hpp"
15 #ifdef PANZER_HAVE_TEKO
20 #include "Teko_RequestCallback.hpp"
24 #ifdef PANZER_HAVE_EPETRA_STACK
32 namespace panzer_stk {
40 class ParameterListCallbackBlocked :
public Teko::RequestCallback<Teuchos::RCP<Teuchos::ParameterList> > {
48 bool handlesRequest(
const Teko::RequestMesg & rm);
50 void preRequest(
const Teko::RequestMesg & rm);
54 bool isField(
const std::string&
field)
const
58 std::vector<Teuchos::RCP<panzer::GlobalIndexer>>
59 fieldDOFMngrs = blocked_ugi_->getFieldDOFManagers();
60 for (
int b(0); b < static_cast<int>(fieldDOFMngrs.size()); ++b)
62 for (
int f(0); f < fieldDOFMngrs[b]->getNumFields(); ++f)
64 if (fieldDOFMngrs[b]->getFieldString(f) ==
field)
69 return (aux_blocked_ugi_->getFieldNum(field) != -1);
71 return (blocked_ugi_->getFieldNum(field) != -1);
74 void buildArrayToVectorTpetra(
int block,
const std::string & field,
const bool useAux =
false);
75 void buildCoordinatesTpetra(
const std::string & field,
const bool useAux =
false);
77 #ifdef PANZER_HAVE_EPETRA_STACK
78 void buildArrayToVectorEpetra(
int block,
const std::string & field,
const bool useAux =
false);
79 void buildCoordinatesEpetra(
const std::string & field,
const bool useAux =
false);
89 const std::vector<double> & getCoordinateByField(
int dim,
const std::string & field)
const;
100 std::map<std::string,Teuchos::RCP<const panzer::Intrepid2FieldPattern> > fieldPatterns_;
104 std::map<std::string,std::vector<double> > xcoords_;
105 std::map<std::string,std::vector<double> > ycoords_;
106 std::map<std::string,std::vector<double> > zcoords_;
108 mutable std::map<std::string,Teuchos::RCP<const panzer::ArrayToFieldVector> > arrayToVectorTpetra_;
109 #ifdef PANZER_HAVE_EPETRA_STACK
110 mutable std::map<std::string,Teuchos::RCP<const panzer::ArrayToFieldVectorEpetra> > arrayToVectorEpetra_;
114 #ifdef PANZER_HAVE_EPETRA_STACK
118 bool returnTpetraObjects_;
123 #endif // PANZER_HAVE_TEKO
PHX::MDField< ScalarT, panzer::Cell, panzer::BASIS > field
A field to which we'll contribute, or in which we'll store, the result of computing this integral...