Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_ScatterCellAvgVector_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_SCATTER_CELL_AVG_VECTOR_DECL_HPP
12 #define PANZER_STK_SCATTER_CELL_AVG_VECTOR_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 
41 template<typename EvalT, typename Traits>
43  :
44  public panzer::EvaluatorWithBaseImpl<Traits>,
45  public PHX::EvaluatorDerived<EvalT, Traits>
46 {
47  public:
48 
50  const Teuchos::ParameterList& p);
51 
52  void
54  typename Traits::SetupData d,
56 
57  void
59  typename Traits::EvalData d);
60 
61  private:
62 
63  using ScalarT = typename EvalT::ScalarT;
64 
65  // typedef panzer_stk::STK_Interface::SolutionFieldType VariableField; // this is weird, but the correct thing
67 
68  std::size_t numValues_;
69 
70  // map of variable-name to scale-factors to be applied upon output. if
71  // this is empty then no variable scaling will be performed. this
72  // should be passed in as an object via the teuchos parameter list in
73  // the ctor with the parameter name "Variable Scale Factors Map".
75 
76  std::vector< PHX::MDField<const ScalarT,panzer::Cell,panzer::Point,panzer::Dim> > scatterFields_;
78 
79  std::vector<VariableField*> stkFields_;
80 
81 }; // end of class ScatterCellAvgVector
82 
83 
84 }
85 
86 // **************************************************************
87 #endif
panzer_stk::STK_Interface::VectorFieldType VariableField
stk::mesh::Field< double > VectorFieldType
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
ScatterCellAvgVector(const Teuchos::ParameterList &p)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< PHX::MDField< const ScalarT, panzer::Cell, panzer::Point, panzer::Dim > > scatterFields_
Teuchos::RCP< std::map< std::string, double > > varScaleFactors_