// @HEADER // ***************************************************************************** // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // // Copyright 2011 NTESS and the Panzer contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef PANZER_EVALUATOR_GATHER_TANGENTS_DECL_HPP #define PANZER_EVALUATOR_GATHER_TANGENTS_DECL_HPP #include "Phalanx_Evaluator_Macros.hpp" #include "Phalanx_MDField.hpp" #include "Teuchos_ParameterList.hpp" #include "Panzer_Dimension.hpp" #include "Panzer_Traits.hpp" #include "Panzer_CloneableEvaluator.hpp" #include "Panzer_PointValues2.hpp" #include "Intrepid2_CellTools.hpp" namespace panzer { /** \brief Gathers tangent vectors per field from the global indexer and stores them in the field manager. */ template class GatherTangents : public PHX::EvaluatorWithBaseImpl, public PHX::EvaluatorDerived, public CloneableEvaluator { public: GatherTangents(const Teuchos::ParameterList& p); void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager& vm); void evaluateFields(typename Traits::EvalData d); virtual Teuchos::RCP clone(const Teuchos::ParameterList & pl) const {return Teuchos::rcp(new GatherTangents(pl));} private: typedef typename EvalT::ScalarT ScalarT; // maps the local (field,element,basis) triplet to a global ID // for scattering std::string dof_name_; PHX::MDField gatherFieldTangents_; Teuchos::RCP basis_; Teuchos::RCP pointRule_; Intrepid2::RefSubcellParametrization::ConstViewType edgeParam_; //edgeParametrization PointValues2 pointValues_; PHX::MDField constJac_; Kokkos::View orientations_; Kokkos::View keys_; }; } // ************************************************************** #endif