From f9a553b0aef431c93373f8493f88d0d1f4061e68 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sat, 6 Jan 2018 17:01:30 +0100 Subject: [PATCH] Prepare SparseFEM benchmark to changes to find() on Julia master 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. --- REQUIRE | 2 +- src/problem/SparseFEM.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/REQUIRE b/REQUIRE index 1089557c..405e23cc 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,3 +1,3 @@ julia 0.6 BenchmarkTools 0.2.1 -Compat 0.37.0 +Compat 0.44.0 diff --git a/src/problem/SparseFEM.jl b/src/problem/SparseFEM.jl index a9bb6a4f..1de14ea4 100644 --- a/src/problem/SparseFEM.jl +++ b/src/problem/SparseFEM.jl @@ -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