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
23template<typename EvalT, typename Traits>
25 : public panzer::EvaluatorWithBaseImpl<Traits>,
26 public PHX::EvaluatorDerived<EvalT, Traits>
27{
28public:
29
30 ConstantVector(const Teuchos::ParameterList& p);
31
34
35 void evaluateFields(typename Traits::EvalData d);
36
37private:
38
39 using ScalarT = typename EvalT::ScalarT;
40 Kokkos::View<double*> vals_;
41 PHX::MDField<ScalarT> vec_;
42};
43
44
45}
46
47#endif
Kokkos::View< double * > vals_
PHX::MDField< ScalarT > vec_
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
typename EvalT::ScalarT ScalarT
void evaluateFields(typename Traits::EvalData d)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.