|
2 | 2 |
|
3 | 3 | #Benchmark iterative methods against matrices from the University of Florida
|
4 | 4 | #sparse collection
|
| 5 | +using Pkg |
5 | 6 |
|
6 | 7 | #Root URL to the matrix collection
|
7 |
| -UFL_URL_ROOT = "http://www.cise.ufl.edu/research/sparse/matrices" |
| 8 | +const UFL_URL_ROOT = "http://www.cise.ufl.edu/research/sparse/matrices" |
8 | 9 | #Plain text file containing list of matrices
|
9 |
| -MASTERLIST = "matrices.txt" |
| 10 | +const MASTERLIST = "matrices.txt" |
10 | 11 | #Download UFL collection to this directory
|
11 |
| -BASEDIR = "florida" |
| 12 | +const BASEDIR = "florida" |
12 | 13 |
|
13 | 14 | # 1. Read in master list of matrices from BASEDIR/MASTERLIST
|
14 | 15 | # If absent, generate this file. Requires Gumbo.jl
|
15 |
| -Pkg.installed("Gumbo")==nothing || using Gumbo |
| 16 | +Pkg.installed("Gumbo") === nothing || using Gumbo |
| 17 | + |
16 | 18 | isdir(BASEDIR) || mkdir(BASEDIR)
|
17 | 19 | if !isfile(joinpath(BASEDIR, MASTERLIST))
|
18 | 20 | Pkg.installed("Gumbo")===nothing && error("Parsing list from UFL website requires Gumbo.jl")
|
@@ -61,11 +63,9 @@ for (group, matrix) in matrices
|
61 | 63 | isdir(groupdir) || mkdir(groupdir)
|
62 | 64 |
|
63 | 65 | if !isfile(joinpath(groupdir, matrix*".mat"))
|
64 |
| - info("Downloading $group/$matrix.mat") |
| 66 | + @info("Downloading $group/$matrix.mat") |
65 | 67 | download(joinpath(UFL_URL_ROOT, "..", "mat", group, matrix*".mat"),
|
66 | 68 | joinpath(BASEDIR, group, matrix*".mat"))
|
67 | 69 | end
|
68 | 70 | end
|
69 |
| -info("Downloaded $(length(matrices)) matrices") |
70 |
| - |
71 |
| - |
| 71 | +@info("Downloaded $(length(matrices)) matrices") |
0 commit comments