Skip to content

Commit

Permalink
Merge branch 'bg/refactoring' of https://github.com/iitis/SpinGlassPE…
Browse files Browse the repository at this point in the history
…PS.jl into bg/refactoring
  • Loading branch information
bartekGardas committed Nov 24, 2020
2 parents 97ad0f7 + a7c58c0 commit 2762d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ising.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function ising_graph(instance::Union{String, Dict}, L::Int, β::Number=1)
if typeof(instance) == String
ising = CSV.File(instance, types=[Int, Int, Float64], comment = "#")
else
ising = [ (first(c), last(c), J) for (c, J) instance ]
ising = [ (i, j, J) for ((i, j), J) instance ]
end

ig = MetaGraph(L, 0.0)
Expand Down
10 changes: 5 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function reshape_row(A::AbstractArray{T}, dims::Tuple) where {T <: Number}
end

my_tests = []
if CUDA.functional() && CUDA.has_cutensor() && false
if CUDA.functional() && CUDA.has_cutensor()
push!(my_tests,
"cuda/base.jl",
"cuda/contractions.jl",
Expand All @@ -23,10 +23,10 @@ end

push!(my_tests,
"base.jl",
"contractions.jl",
"compressions.jl",
"ising.jl",
"search.jl"
"contractions.jl",
"compressions.jl",
"ising.jl",
"search.jl"
)

for my_test in my_tests
Expand Down

0 comments on commit 2762d34

Please sign in to comment.