Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_GatherTangents_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_TANGENTS_DECL_HPP
12#define PANZER_EVALUATOR_GATHER_TANGENTS_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#include "Intrepid2_CellTools.hpp"
24
25namespace panzer {
26
30template<typename EvalT, typename Traits>
32 : public PHX::EvaluatorWithBaseImpl<Traits>,
33 public PHX::EvaluatorDerived<EvalT, Traits>,
34 public CloneableEvaluator {
35
36public:
37
38 GatherTangents(const Teuchos::ParameterList& p);
39
42
43 void evaluateFields(typename Traits::EvalData d);
44
45 virtual Teuchos::RCP<CloneableEvaluator> clone(const Teuchos::ParameterList & pl) const
46 {return Teuchos::rcp(new GatherTangents<EvalT,Traits>(pl));}
47
48private:
49
50 typedef typename EvalT::ScalarT ScalarT;
51
52 // maps the local (field,element,basis) triplet to a global ID
53 // for scattering
54 std::string dof_name_;
55
56 PHX::MDField<ScalarT,Cell,NODE,Dim> gatherFieldTangents_;
57
58 Teuchos::RCP<const PureBasis> basis_;
59 Teuchos::RCP<const PointRule> pointRule_;
60 Intrepid2::RefSubcellParametrization<PHX::Device>::ConstViewType edgeParam_; //edgeParametrization
61
63 PHX::MDField<const double,Cell,IP,Dim,Dim> constJac_;
64
65 Kokkos::View<Intrepid2::Orientation*> orientations_;
66 Kokkos::View<unsigned int*> keys_;
67};
68
69}
70
71// **************************************************************
72#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.
PointValues2< double > pointValues_
Intrepid2::RefSubcellParametrization< PHX::Device >::ConstViewType edgeParam_
Kokkos::View< unsigned int * > keys_
void evaluateFields(typename Traits::EvalData d)
Teuchos::RCP< const PureBasis > basis_
Kokkos::View< Intrepid2::Orientation * > orientations_
PHX::MDField< const double, Cell, IP, Dim, Dim > constJac_
PHX::MDField< ScalarT, Cell, NODE, Dim > gatherFieldTangents_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)
Teuchos::RCP< const PointRule > pointRule_