43 #ifndef __Panzer_STK_ParameterListCallback_hpp__
44 #define __Panzer_STK_ParameterListCallback_hpp__
46 #include "PanzerAdaptersSTK_config.hpp"
47 #ifdef PANZER_HAVE_TEKO
52 #include "Teko_RequestCallback.hpp"
60 namespace panzer_stk {
68 class ParameterListCallback :
public Teko::RequestCallback<Teuchos::RCP<Teuchos::ParameterList> > {
70 ParameterListCallback(
const std::string & coordFieldName,
77 bool handlesRequest(
const Teko::RequestMesg & rm);
79 void preRequest(
const Teko::RequestMesg & rm);
81 const std::vector<double> & getCoordsVector(
unsigned dim)
const
84 return getXCoordsVector();
86 return getYCoordsVector();
88 return getZCoordsVector();
95 const std::vector<double> & getXCoordsVector()
const {
return xcoords_; }
96 const std::vector<double> & getYCoordsVector()
const {
return ycoords_; }
97 const std::vector<double> & getZCoordsVector()
const {
return zcoords_; }
101 {
return arrayToVector_; }
103 void buildCoordinates();
104 void buildArrayToVector();
107 void storeExtraVector(
const Teuchos::RCP<
const std::vector<double> > & extra)
108 { extraVecs_.push_back(extra); }
114 std::string coordFieldName_;
115 std::map<std::string,Teuchos::RCP<const panzer::Intrepid2FieldPattern> > fieldPatterns_;
118 bool coordinatesBuilt_;
120 std::vector<double> xcoords_;
121 std::vector<double> ycoords_;
122 std::vector<double> zcoords_;
125 std::vector<Teuchos::RCP<const std::vector<double> > > extraVecs_;
130 #endif // PANZER_HAVE_TEKO
#define TEUCHOS_ASSERT(assertion_test)