11 #ifndef __Panzer_ResponseEvaluatorFactory_Functional_impl_hpp__
12 #define __Panzer_ResponseEvaluatorFactory_Functional_impl_hpp__
16 #include "PanzerDiscFE_config.hpp"
20 #include "Panzer_Integrator_Scalar.hpp"
28 template <
typename EvalT,
typename LO,
typename GO>
38 template <
typename EvalT,
typename LO,
typename GO>
50 if(requiresCellIntegral_) {
51 std::string
field = (quadPointField_==
"" ? responseName : quadPointField_);
57 pl.
set(
"Integral Name", field);
58 pl.
set(
"Integrand Name",field);
64 this->
template registerEvaluator<EvalT>(fm, eval);
71 if(linearObjFactory_!=Teuchos::null) {
73 TEUCHOS_ASSERT(linearObjFactory_->getDomainGlobalIndexer()!=Teuchos::null);
75 auto ugi = Teuchos::rcp_dynamic_cast<
const GlobalIndexer>(linearObjFactory_->getDomainGlobalIndexer());
76 auto bugi = Teuchos::rcp_dynamic_cast<
const BlockedDOFManager>(linearObjFactory_->getDomainGlobalIndexer());
78 if(ugi!=Teuchos::null) {
79 std::vector<Teuchos::RCP<const GlobalIndexer> > ugis;
84 else if(bugi!=Teuchos::null) {
92 std::string
field = (quadPointField_==
"" ? responseName : quadPointField_);
98 this->
template registerEvaluator<EvalT>(fm, eval);
101 fm.template requireField<EvalT>(*eval->evaluatedFields()[0]);
105 template <
typename EvalT,
typename LO,
typename GO>
109 if( PHX::print<EvalT>()==PHX::print<panzer::Traits::Residual>() ||
110 PHX::print<EvalT>()==PHX::print<panzer::Traits::Tangent>()
114 if(PHX::print<EvalT>()==PHX::print<panzer::Traits::Jacobian>())
115 return linearObjFactory_!=Teuchos::null;
117 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
118 if(PHX::print<EvalT>()==PHX::print<panzer::Traits::Hessian>()) {
119 return linearObjFactory_!=Teuchos::null;
Object that contains information on the physics and discretization of a block of elements with the SA...
const panzer::CellData & cellData() const
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void setRequiresDirichletAdjustment(bool b)
std::vector< Teuchos::RCP< const GlobalIndexer > > nc2c_vector(const std::vector< Teuchos::RCP< GlobalIndexer > > &ugis)
virtual Teuchos::RCP< ResponseBase > buildResponseObject(const std::string &responseName) const
virtual void buildAndRegisterEvaluators(const std::string &responseName, PHX::FieldManager< panzer::Traits > &fm, const panzer::PhysicsBlock &physicsBlock, const Teuchos::ParameterList &user_data) const
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...
#define TEUCHOS_ASSERT(assertion_test)
virtual bool typeSupported() const