Skip to content

Commit 4c1b721

Browse files
authored
Merge pull request #52 from Alexander-Barth/master
fix issue #51
2 parents 1470b14 + f74307e commit 4c1b721

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/multilevel.jl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,20 @@ function Base.show(io::IO, ml::MultiLevel)
7979
end
8080
lstr = lstr *
8181
@sprintf " %2d %10d %10d [%5.2f%%]" length(ml.levels) + 1 size(ml.final_A, 1) nnz(ml.final_A) (100 * nnz(ml.final_A) / total_nnz)
82+
83+
@static if VERSION < v"0.7-"
84+
opround = round(op, 3)
85+
ground = round(op, 3)
86+
else
87+
opround = round(op, digits = 3)
88+
ground = round(op, digits = 3)
89+
end
90+
8291
str = """
8392
Multilevel Solver
8493
-----------------
85-
Operator Complexity: $(round(op, 3))
86-
Grid Complexity: $(round(g, 3))
94+
Operator Complexity: $opround
95+
Grid Complexity: $ground
8796
No. of Levels: $(length(ml))
8897
Coarse Solver: $c
8998
Level Unknowns NonZeros

0 commit comments

Comments
 (0)