Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ConstantVector.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_CONSTANT_VECTOR_HPP
12#define PANZER_EVALUATOR_CONSTANT_VECTOR_HPP
13
14#include "PanzerDiscFE_config.hpp"
15
16#include "Phalanx_Evaluator_Macros.hpp"
17#include "Phalanx_MDField.hpp"
18
20
21namespace panzer {
22
29template<typename EvalT, typename Traits>
31 : public panzer::EvaluatorWithBaseImpl<Traits>,
32 public PHX::EvaluatorDerived<EvalT, Traits>
33{
34public:
35
37 ConstantVector(const Teuchos::ParameterList& p);
38
42
44 void evaluateFields(typename Traits::EvalData d);
45
46private:
47
48 using ScalarT = typename EvalT::ScalarT;
49 Kokkos::View<double*> vals_;
50 PHX::MDField<ScalarT> vec_;
51};
52
53
54}
55
56#endif
Kokkos::View< double * > vals_
PHX::MDField< ScalarT > vec_
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
Sets the vector field to the constant components given at construction. Called once before the first ...
typename EvalT::ScalarT ScalarT
void evaluateFields(typename Traits::EvalData d)
No-op; the vector field is already set by postRegistrationSetup().
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
User-defined data passed to PHX::Evaluator::postRegistrationSetup() during the one-time setup phase.