Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_GatherNormals_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_EVALUATOR_GATHER_NORMALS_DECL_HPP
12 #define PANZER_EVALUATOR_GATHER_NORMALS_DECL_HPP
13 
14 #include "Phalanx_Evaluator_Macros.hpp"
15 #include "Phalanx_MDField.hpp"
16 
18 
19 #include "Panzer_Dimension.hpp"
20 #include "Panzer_Traits.hpp"
22 #include "Panzer_PointValues2.hpp"
23 
24 
25 #include "Intrepid2_CellTools.hpp"
26 
27 namespace panzer {
28 
32 template<typename EvalT, typename Traits>
34  : public PHX::EvaluatorWithBaseImpl<Traits>,
35  public PHX::EvaluatorDerived<EvalT, Traits>,
36  public CloneableEvaluator {
37 
38 public:
39 
41 
44 
45  void evaluateFields(typename Traits::EvalData d);
46 
48  {return Teuchos::rcp(new GatherNormals<EvalT,Traits>(pl));}
49 
50 private:
51 
52  typedef typename EvalT::ScalarT ScalarT;
53 
54  // maps the local (field,element,basis) triplet to a global ID
55  // for scattering
56  std::string dof_name_;
57 
59 
60  GatherNormals();
61 
64  Intrepid2::RefSubcellParametrization<PHX::Device>::ConstViewType sideParam_;
67 
70 
71  // Temporaries
72  Kokkos::DynRankView<ScalarT,PHX::Device> refEdges_;
73  Kokkos::DynRankView<ScalarT,PHX::Device> phyEdges_;
74 };
75 
76 }
77 
78 // **************************************************************
79 #endif
PHX::MDField< ScalarT, Cell, NODE, Dim > gatherFieldNormals_
Teuchos::RCP< const PureBasis > basis_
Teuchos::RCP< const PointRule > pointRule_
PHX::MDField< const double, Cell, IP, Dim, Dim > constJac_
Kokkos::DynRankView< ScalarT, PHX::Device > phyEdges_
PointValues2< double > pointValues_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Kokkos::DynRankView< ScalarT, PHX::Device > refEdges_
Gathers tangent vectors per field from the global indexer and stores them in the field manager...
void evaluateFields(typename Traits::EvalData d)
Kokkos::View< unsigned int * > keys_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)
Intrepid2::RefSubcellParametrization< PHX::Device >::ConstViewType sideParam_
Non-templated empty base class for template managers.
Kokkos::View< Intrepid2::Orientation * > orientations_