// @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_STK_GatherFields_decl_HPP__
#define __PANZER_STK_GatherFields_decl_HPP__
#include "Phalanx_config.hpp"
#include "Phalanx_Evaluator_Macros.hpp"
#include "Phalanx_MDField.hpp"
#include "Teuchos_ParameterList.hpp"
#include "Panzer_Dimension.hpp"
#include "Panzer_Traits.hpp"
#include "Panzer_STK_Interface.hpp"
#include "Panzer_Evaluator_WithBaseImpl.hpp"
namespace panzer_stk {
/** This class is a gather operation from the mesh. It
* takes a set of field names and basis objects and
* then reads them in from the mesh object.
*
* The constructor takes a STK_Interface RCP and parameter list
* that is required to contain the following two fields
* "Field Names" of type Teuchos::RCP >
* and "Basis" of type Teuchos::RCP.
*/
template
class GatherFields
: public panzer::EvaluatorWithBaseImpl,
public PHX::EvaluatorDerived {
public:
GatherFields(const Teuchos::RCP & mesh,const Teuchos::ParameterList & p);
void postRegistrationSetup(typename Traits::SetupData d,
PHX::FieldManager& vm);
void evaluateFields(typename Traits::EvalData d);
private:
typedef typename EvalT::ScalarT ScalarT;
typedef panzer_stk::STK_Interface::SolutionFieldType VariableField;
std::vector< PHX::MDField > gatherFields_;
std::vector stkFields_;
Teuchos::RCP mesh_;
bool isConstant_;
GatherFields();
};
}
// **************************************************************
#endif