Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_STK_GatherFields_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_STK_GatherFields_decl_HPP__
12#define __PANZER_STK_GatherFields_decl_HPP__
13
14#include "Phalanx_config.hpp"
15#include "Phalanx_Evaluator_Macros.hpp"
16#include "Phalanx_MDField.hpp"
17
18#include "Teuchos_ParameterList.hpp"
19
20#include "Panzer_Dimension.hpp"
21#include "Panzer_Traits.hpp"
23
25
26namespace panzer_stk {
27
37template<typename EvalT, typename Traits>
39 : public panzer::EvaluatorWithBaseImpl<Traits>,
40 public PHX::EvaluatorDerived<EvalT, Traits> {
41
42public:
43 GatherFields(const Teuchos::RCP<const panzer_stk::STK_Interface> & mesh,const Teuchos::ParameterList & p);
44
45 void postRegistrationSetup(typename Traits::SetupData d,
47
48 void evaluateFields(typename Traits::EvalData d);
49
50private:
51 typedef typename EvalT::ScalarT ScalarT;
53
54 std::vector< PHX::MDField<ScalarT,panzer::Cell,panzer::NODE> > gatherFields_;
55 std::vector<VariableField*> stkFields_;
56
57 Teuchos::RCP<const STK_Interface> mesh_;
58
60
62
63};
64
65}
66
67// **************************************************************
68#endif
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< VariableField * > stkFields_
Teuchos::RCP< const STK_Interface > mesh_
GatherFields(const Teuchos::RCP< const panzer_stk::STK_Interface > &mesh, const Teuchos::ParameterList &p)
void evaluateFields(typename Traits::EvalData d)
panzer_stk::STK_Interface::SolutionFieldType VariableField
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &vm)
std::vector< PHX::MDField< ScalarT, panzer::Cell, panzer::NODE > > gatherFields_
stk::mesh::Field< double > SolutionFieldType