// @HEADER // ***************************************************************************** // Phalanx: A Partial Differential Equation Field Evaluation // Kernel for Flexible Management of Complex Dependency Chains // // Copyright 2008 NTESS and the Phalanx contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef PHX_EVALUATOR_UTILITIES_H #define PHX_EVALUATOR_UTILITIES_H #include #include "Phalanx_FieldManager.hpp" namespace PHX { // Forward declarations template class Field; template class MDField; /*! @brief Utilities to hide templating in concrete Evaluators. */ template struct EvaluatorUtilities { template void setFieldData(PHX::MDField& f, PHX::FieldManager& fm) { fm.template getFieldData(f); } template void setFieldData(PHX::Field& f, PHX::FieldManager& fm) { fm.template getFieldData(f); } template void setFieldData(const PHX::FieldTag& /* ft */, Kokkos::View& /* f */, PHX::FieldManager& /* fm */) {} }; } #endif