Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_ScatterCellQuantity_decl.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef __PANZER_STK_ScatterCellQuantity_decl_HPP__
12 #define __PANZER_STK_ScatterCellQuantity_decl_HPP__
13 
14 #include "Phalanx_config.hpp"
15 #include "Phalanx_Evaluator_Macros.hpp"
16 #include "Phalanx_MDField.hpp"
17 
19 
20 #include "Panzer_Dimension.hpp"
21 #include "Panzer_Traits.hpp"
22 
23 #include "Panzer_STK_Interface.hpp"
24 
26 
27 namespace panzer_stk {
28 
40 template<typename EvalT, typename Traits>
42  :
43  public panzer::EvaluatorWithBaseImpl<Traits>,
44  public PHX::EvaluatorDerived<EvalT, Traits>
45 {
46  public:
47 
49  const Teuchos::ParameterList& p);
50 
51  void
53  typename Traits::SetupData d,
55 
56  void
58  typename Traits::EvalData d);
59 
60  private:
61 
62  using ScalarT = typename EvalT::ScalarT;
63  std::vector< PHX::MDField<const ScalarT,panzer::Cell> > scatterFields_;
65 
66  // map of variable-name to scale-factors to be applied upon output. if
67  // this is empty then no variable scaling will be performed. this
68  // should be passed in as an object via the teuchos parameter list in
69  // the ctor with the parameter name "Variable Scale Factors Map".
71 
72 }; // end of class ScatterCellQuantity
73 
74 
75 }
76 
77 // **************************************************************
78 #endif
ScatterCellQuantity(const Teuchos::ParameterList &p)
std::vector< PHX::MDField< const ScalarT, panzer::Cell > > scatterFields_
Teuchos::RCP< std::map< std::string, double > > varScaleFactors_
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void evaluateFields(typename Traits::EvalData d)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)