From d7c4c065a58a3504038b413e1adbcb75285e3ba8 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Sat, 28 Dec 2024 20:19:17 -0500 Subject: [PATCH] Remove leftover autoenzyme kwarg, code style tweaks --- src/utils.jl | 12 ++++++------ test/combinations.jl | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 671fd8f6..2b8d943c 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -16,7 +16,7 @@ end supports_autoenzyme(geometry::Geometry) supports_autoenzyme(type::Type{<:Geometry}) -Return whether a geometry (or geometry type) has a parametric function that can be +Return whether a geometry or geometry type has a parametric function that can be differentiated with Enzyme. See GitHub Issue #154 for more information. """ function supports_autoenzyme end @@ -52,8 +52,8 @@ Return an instance of the default DifferentiationMethod for a particular geometr """ function _default_diff_method( ::Type{G}, - FP::Type{T} -) where {G <: Geometry, T <: AbstractFloat} + ::Type{FP} +) where {G <: Geometry, FP <: AbstractFloat} # Enzyme only works with these FP types uses_Enzyme_supported_FP_type = (FP <: Union{Float32, Float64}) @@ -67,9 +67,9 @@ end # If provided a geometry instance, re-run with the type as argument function _default_diff_method( ::G, - ::Type{T} -) where {G <: Geometry, T <: AbstractFloat} - return _default_diff_method(G, T) + ::Type{FP} +) where {G <: Geometry, FP <: AbstractFloat} + return _default_diff_method(G, FP) end ################################################################################ diff --git a/test/combinations.jl b/test/combinations.jl index ec9245b1..22de4bc5 100644 --- a/test/combinations.jl +++ b/test/combinations.jl @@ -200,7 +200,7 @@ end # Package and run tests testable = TestableGeometry(integrand, curve, solution) - runtests(testable; autoenzyme = false, rtol = 0.5e-2) + runtests(testable; rtol = 0.5e-2) end @testitem "Meshes.Box 1D" setup=[Combinations] begin