diff --git a/src/tests/tribol_enzyme_poly_intersect.cpp b/src/tests/tribol_enzyme_poly_intersect.cpp index 63702e0f..ce28e15b 100644 --- a/src/tests/tribol_enzyme_poly_intersect.cpp +++ b/src/tests/tribol_enzyme_poly_intersect.cpp @@ -21,7 +21,6 @@ #include "mfem.hpp" -#include "tribol/common/Enzyme.hpp" #include "tribol/geom/GeomUtilities.hpp" namespace tribol { diff --git a/src/tribol/CMakeLists.txt b/src/tribol/CMakeLists.txt index 99e1689f..2d26f6f6 100644 --- a/src/tribol/CMakeLists.txt +++ b/src/tribol/CMakeLists.txt @@ -14,7 +14,6 @@ set(tribol_headers common/ArrayTypes.hpp common/BasicTypes.hpp common/Containers.hpp - common/Enzyme.hpp common/ExecModel.hpp common/LoopExec.hpp common/Parameters.hpp diff --git a/src/tribol/common/Enzyme.hpp b/src/tribol/common/Enzyme.hpp deleted file mode 100644 index 42bf8ca5..00000000 --- a/src/tribol/common/Enzyme.hpp +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and -// other Tribol Project Developers. See the top-level LICENSE file for details. -// -// SPDX-License-Identifier: (MIT) - -#ifndef TRIBOL_COMMON_ENZYME_HPP_ -#define TRIBOL_COMMON_ENZYME_HPP_ - -// Tribol includes -#include "tribol/config.hpp" - -#ifdef TRIBOL_USE_ENZYME -/* - * Enzyme is an LLVM-based automatic differentiation (AD) tool that enables - * efficient computation of derivatives directly from code at compile time. - * - * Variables prefixed with enzyme_* or function types prefixed with __enzyme_*, - * are variables which will get preprocessed in the LLVM intermediate - * representation when the Enzyme LLVM plugin is loaded. - * - * For more details, see the Enzyme documentation: https://enzyme.mit.edu - */ - -extern int enzyme_dup; -extern int enzyme_dupnoneed; -extern int enzyme_out; -extern int enzyme_const; - -extern int enzyme_runtime_activity; - -// Reverse mode autodiff -template -return_type __enzyme_autodiff( Args... ); - -// Forward mode autodiff -template -return_type __enzyme_fwddiff( Args... ); -#endif - -#endif /* TRIBOL_COMMON_ENZYME_HPP_ */ diff --git a/src/tribol/geom/GeomUtilities.cpp b/src/tribol/geom/GeomUtilities.cpp index a6d1ee2a..5a80add9 100644 --- a/src/tribol/geom/GeomUtilities.cpp +++ b/src/tribol/geom/GeomUtilities.cpp @@ -9,7 +9,7 @@ #include "tribol/utils/Math.hpp" #ifdef TRIBOL_USE_ENZYME -#include "tribol/common/Enzyme.hpp" +#include "mfem/general/enzyme.hpp" #endif #include "axom/core.hpp" diff --git a/src/tribol/geom/NodalNormal.cpp b/src/tribol/geom/NodalNormal.cpp index cba66038..ded86d88 100644 --- a/src/tribol/geom/NodalNormal.cpp +++ b/src/tribol/geom/NodalNormal.cpp @@ -9,7 +9,7 @@ #include "tribol/utils/Math.hpp" #ifdef TRIBOL_USE_ENZYME -#include "tribol/common/Enzyme.hpp" +#include "mfem/general/enzyme.hpp" #endif namespace tribol { diff --git a/src/tribol/physics/Mortar.cpp b/src/tribol/physics/Mortar.cpp index ca88f617..94433da7 100644 --- a/src/tribol/physics/Mortar.cpp +++ b/src/tribol/physics/Mortar.cpp @@ -25,7 +25,7 @@ #include #ifdef TRIBOL_USE_ENZYME -#include "tribol/common/Enzyme.hpp" +#include "mfem/general/enzyme.hpp" #endif namespace tribol {