Skip to content

Commit 9ebf334

Browse files
authored
fix: merge_strategy() is an instance, not a type (#164)
* merge_strategy is an instance not a type * unused type parameters: silence warnings * bump to 0.8.7
1 parent 80085a9 commit 9ebf334

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "COSMO"
22
uuid = "1e616198-aa4e-51ec-90a2-23f7fbd31d8d"
33
authors = ["Michael <[email protected]>"]
4-
version = "0.8.6"
4+
version = "0.8.7"
55

66
[deps]
77
AMD = "14f7f29c-3bd6-536c-9a0b-7339e30b5a3e"

src/accelerator_interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
check_activation!(ws::Workspace, activation_reason::AccuracyActivation, num_iter::Int64) = nothing
3636

3737

38-
function check_activation!(ws::Workspace, activation_reason::AccuracyActivation, r::ResultInfo) where {T <: AbstractFloat}
38+
function check_activation!(ws::Workspace, activation_reason::AccuracyActivation, r::ResultInfo)
3939
if !ws.accelerator_active
4040
tol = activation_reason.start_accuracy
4141

@@ -45,7 +45,7 @@ function check_activation!(ws::Workspace, activation_reason::AccuracyActivation,
4545
end
4646
end
4747

48-
check_activation!(ws::Workspace, activation_reason::Union{IterActivation, ImmediateActivation}, r::ResultInfo) where {T <: AbstractFloat}= nothing
48+
check_activation!(ws::Workspace, activation_reason::Union{IterActivation, ImmediateActivation}, r::ResultInfo) = nothing
4949

5050

5151
"""

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mutable struct SparsityPattern
197197
# clique merging only if more than one clique present
198198
if sntree.num > 1
199199
merge_cliques!(sntree)
200-
elseif merge_strategy <: AbstractGraphBasedMerge
200+
elseif merge_strategy isa AbstractGraphBasedMerge
201201
# if no merging attempt happens for a clique graph, we still have to convert the snd and sep back to Array{Array{Int}, 1}
202202
# for consistency
203203
sntree.snd = sort.(collect.(sntree.snd))

0 commit comments

Comments
 (0)