Skip to content

Commit

Permalink
Prepare SparseFEM benchmark to changes to find() on Julia master (#157)
Browse files Browse the repository at this point in the history
find() will soon return cartesian indices, so this benchmark needs
to convert them to linear indices. Unfortunately, LinearIndice
currently does not allow indexing with an array, so we need to use
a comprehension.
  • Loading branch information
nalimilan authored and ararslan committed Jan 9, 2018
1 parent 7e961f6 commit 3ae227e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.6
BenchmarkTools 0.2.1
Compat 0.37.0
Compat 0.44.0
2 changes: 1 addition & 1 deletion src/problem/SparseFEM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

# timing of assembly, slice and solve
function perf_sparse_fem(N)
Ifree = get_free(N)
Ifree = [LinearIndices((N, N))[i] for i in get_free(N)]
# assembly
A = fdlaplacian(N)
# boundary condition
Expand Down

0 comments on commit 3ae227e

Please sign in to comment.