11 #ifndef __Panzer_ResponseScatterEvaluator_Probe_hpp__ 
   12 #define __Panzer_ResponseScatterEvaluator_Probe_hpp__ 
   17 #include "PanzerDiscFE_config.hpp" 
   23 #include "Phalanx_Evaluator_Macros.hpp" 
   24 #include "Phalanx_MDField.hpp" 
   36     const size_t cell_index,
 
   43 template <
typename LO,
typename GO>
 
   51      const size_t cell_index,
 
   64 template<
typename EvalT, 
typename Traits, 
typename LO, 
typename GO>
 
   72     const std::string & responseName,
 
   73     const std::string & fieldName,
 
   74     const int fieldComponent,
 
  116 template<
typename EvalT, 
typename Traits, 
typename LO, 
typename GO>
 
  125     const std::string & responseName,
 
  126     const std::string & fieldName,
 
  127     const int fieldComponent,
 
  133     Base(responseName, fieldName, fieldComponent, point,
 
  134          ir, basis, indexer, probeScatter) {}
 
  139 template<
typename LO, 
typename GO>
 
  148     const std::string & responseName,
 
  149     const std::string & fieldName,
 
  150     const int fieldComponent,
 
  156     Base(responseName, fieldName, fieldComponent, point,
 
  157          ir, basis, indexer, probeScatter) {}
 
  162 template <
typename LO,
typename GO>
 
  165   const size_t cell_index,
 
  166   const bool has_probe,
 
  173     PHX::View<const LO*> LIDs = globalIndexer_->getElementLIDs(cell_index);
 
  176     for(std::size_t i=0; i<LIDs.size(); ++i) {
 
  177       dgdx[LIDs[i]] += probeValue.dx(i);
 
Teuchos::RCP< const panzer::PureBasis > basis_
virtual ~ProbeScatterBase()
std::string responseName_
PHX::MDField< const ScalarT, Cell, BASIS > field_
ResponseScatterEvaluator_ProbeBase< panzer::Traits::Jacobian, panzer::Traits, LO, GO > Base
virtual void scatterDerivative(const panzer::Traits::Jacobian::ScalarT &probeValue, const size_t cell_index, const bool has_probe, panzer::Traits::EvalData workset, WorksetDetailsAccessor &wda, Teuchos::ArrayRCP< double > &dgdx) const =0
Teuchos::Array< double > point_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
void preEvaluate(typename Traits::PreEvalData d)
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
ResponseScatterEvaluator_Probe(const std::string &responseName, const std::string &fieldName, const int fieldComponent, const Teuchos::Array< double > &point, const IntegrationRule &ir, const Teuchos::RCP< const PureBasis > &basis, const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< ProbeScatterBase > &probeScatter)
A constructor with concrete arguments instead of a parameter list. 
ResponseScatterEvaluator_ProbeBase< EvalT, Traits, LO, GO > Base
void postRegistrationSetup(typename Traits::SetupData, PHX::FieldManager< Traits > &)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers. 
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
void evaluateFields(typename Traits::EvalData d)
Teuchos::RCP< const shards::CellTopology > topology_
bool findCellAndComputeBasisValues(typename Traits::EvalData d)
Kokkos::DynRankView< double, PHX::Device > basis_values_
ResponseScatterEvaluator_ProbeBase(const std::string &responseName, const std::string &fieldName, const int fieldComponent, const Teuchos::Array< double > &point, const IntegrationRule &ir, const Teuchos::RCP< const PureBasis > &basis, const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< ProbeScatterBase > &probeScatter)
A constructor with concrete arguments instead of a parameter list. 
ProbeScatter(const Teuchos::RCP< const panzer::GlobalIndexer > &globalIndexer)
Teuchos::RCP< Response_Probe< EvalT > > responseObj_
ResponseScatterEvaluator_Probe(const std::string &responseName, const std::string &fieldName, const int fieldComponent, const Teuchos::Array< double > &point, const IntegrationRule &ir, const Teuchos::RCP< const PureBasis > &basis, const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< ProbeScatterBase > &probeScatter)
A constructor with concrete arguments instead of a parameter list. 
void scatterDerivative(const panzer::Traits::Jacobian::ScalarT &probeValue, const size_t cell_index, const bool has_probe, panzer::Traits::EvalData workset, WorksetDetailsAccessor &wda, Teuchos::ArrayRCP< double > &dgdx) const 
Teuchos::RCP< ProbeScatterBase > scatterObj_