We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1470b14 + f74307e commit 4c1b721Copy full SHA for 4c1b721
src/multilevel.jl
@@ -79,11 +79,20 @@ function Base.show(io::IO, ml::MultiLevel)
79
end
80
lstr = lstr *
81
@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
91
str = """
92
Multilevel Solver
93
-----------------
- Operator Complexity: $(round(op, 3))
- Grid Complexity: $(round(g, 3))
94
+ Operator Complexity: $opround
95
+ Grid Complexity: $ground
96
No. of Levels: $(length(ml))
97
Coarse Solver: $c
98
Level Unknowns NonZeros
0 commit comments