Skip to content

Commit

Permalink
Fixed version logic to be defined for all Julia versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsp32 committed Apr 8, 2024
1 parent 3491555 commit 61671cf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/Core/calculators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ using RingPolymerArrays: RingPolymerArrays

# For the allocation tests check against both backends as we can't be sure which is in use.
const MKL_EIGEN_ALLOCATIONS = 54912
if VERSIONv"1.9" # Julia 1.10 has slightly different eigen allocations
const OPENBLAS_EIGEN_ALLOCATIONS = 57216
elseif VERSIONv"1.8" # I seem to remember this first showed up from 1.8 ---> 1.9
const OPENBLAS_EIGEN_ALLOCATIONS = 56896
end
# Julia 1.10 has slightly different eigen allocations
VERSION>v"1.9" ? const OPENBLAS_EIGEN_ALLOCATIONS = 57216 : const OPENBLAS_EIGEN_ALLOCATIONS = 56896

@testset "General constructors" begin
model = NQCModels.DoubleWell()
Expand Down

0 comments on commit 61671cf

Please sign in to comment.