// @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 //********************************************************************** #include "Phalanx_DataLayout_MDALayout.hpp" #include "Phalanx_DataLayout_DynamicLayout.hpp" #include "Phalanx_FieldTag_Tag.hpp" #include "Phalanx_MDField.hpp" struct CELL; struct BASIS; namespace PHX { template void MockDAG:: postRegistrationSetup(typename Traits::SetupData , PHX::FieldManager& ) { //this->utils.setFieldData(flux,fm); } template void MockDAG::evaluateFields(typename Traits::EvalData /* d */){} template void MockDAG::evaluates(const std::string& n, const bool use_dynamic_layout) { using Teuchos::RCP; using Teuchos::rcp; RCP dl; if (use_dynamic_layout) dl = rcp(new PHX::Layout("H-Grad")); else dl = rcp(new PHX::MDALayout("H-Grad",100,4)); PHX::Tag tag(n,dl); this->addEvaluatedField(tag); } template void MockDAG::depends(const std::string& n, const bool use_dynamic_layout) { using Teuchos::RCP; using Teuchos::rcp; RCP dl; if (use_dynamic_layout) dl = rcp(new PHX::Layout("H-Grad")); else dl = rcp(new PHX::MDALayout("H-Grad",100,4)); PHX::Tag tag(n,dl); this->addDependentField(tag); } template void MockDAG::contributes(const std::string& n, const bool use_dynamic_layout) { using Teuchos::RCP; using Teuchos::rcp; RCP dl; if (use_dynamic_layout) dl = rcp(new PHX::Layout("H-Grad")); else dl = rcp(new PHX::MDALayout("H-Grad",100,4)); PHX::Tag tag(n,dl); this->addContributedField(tag); } template void MockDAG::unshared(const std::string& n) { using Teuchos::RCP; using Teuchos::rcp; RCP> dl = rcp(new PHX::MDALayout("H-Grad",100,4)); RCP> tag = Teuchos::rcp(new PHX::Tag(n,dl)); this->addUnsharedField(tag); } }