Skip to content

Commit

Permalink
Remove leftover autoenzyme kwarg, code style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Dec 29, 2024
1 parent ceca964 commit d7c4c06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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})

Expand All @@ -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

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7c4c06

Please sign in to comment.