Panzer Version of the Day
Loading...
Searching...
No Matches
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
17#include "Teuchos_ParameterList.hpp"
18
19#include "Panzer_Dimension.hpp"
20#include "Panzer_Traits.hpp"
23
24
25#include "Intrepid2_CellTools.hpp"
26
27namespace panzer {
28
32template<typename EvalT, typename Traits>
34 : public PHX::EvaluatorWithBaseImpl<Traits>,
35 public PHX::EvaluatorDerived<EvalT, Traits>,
36 public CloneableEvaluator {
37
38public:
39
40 GatherNormals(const Teuchos::ParameterList& p);
41
44
45 void evaluateFields(typename Traits::EvalData d);
46
47 virtual Teuchos::RCP<CloneableEvaluator> clone(const Teuchos::ParameterList & pl) const
48 {return Teuchos::rcp(new GatherNormals<EvalT,Traits>(pl));}
49
50private:
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
58 PHX::MDField<ScalarT,Cell,NODE,Dim> gatherFieldNormals_;
59
61
62 Teuchos::RCP<const PureBasis> basis_;
63 Teuchos::RCP<const PointRule> pointRule_;
64 Intrepid2::RefSubcellParametrization<PHX::Device>::ConstViewType sideParam_;
66 PHX::MDField<const double,Cell,IP,Dim,Dim> constJac_;
67
68 Kokkos::View<Intrepid2::Orientation*> orientations_;
69 Kokkos::View<unsigned int*> keys_;
70
71 // Temporaries
72 Kokkos::DynRankView<ScalarT,PHX::Device> refEdges_;
73 Kokkos::DynRankView<ScalarT,PHX::Device> phyEdges_;
74};
75
76}
77
78// **************************************************************
79#endif
Non-templated empty base class for template managers.
Gathers tangent vectors per field from the global indexer and stores them in the field manager.
void evaluateFields(typename Traits::EvalData d)
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)
PHX::MDField< ScalarT, Cell, NODE, Dim > gatherFieldNormals_
Kokkos::View< unsigned int * > keys_
PointValues2< double > pointValues_
Kokkos::View< Intrepid2::Orientation * > orientations_
PHX::MDField< const double, Cell, IP, Dim, Dim > constJac_
Teuchos::RCP< const PointRule > pointRule_
Kokkos::DynRankView< ScalarT, PHX::Device > refEdges_
Intrepid2::RefSubcellParametrization< PHX::Device >::ConstViewType sideParam_
Teuchos::RCP< const PureBasis > basis_
Kokkos::DynRankView< ScalarT, PHX::Device > phyEdges_