@@ -22,6 +22,8 @@ function randDArray(m,n,sparsity=0.01)
2222 return A
2323end
2424
25+ # Stack two 2D finite-difference matrices on top of each other
26+ # and make the last column dense
2527function stackedFD2D (n0, n1)
2628 height = 2 * n0* n1
2729 width = n0* n1
@@ -67,7 +69,7 @@ function stackedFD2D(n0, n1)
6769 end
6870
6971 # The dense last column
70- El. queueUpdate (A, s, width, - div ( 10.0 , height))
72+ El. queueUpdate (A, s, width, floor ( - 10 / height))
7173 end
7274 El. processQueues (A)
7375 return A
@@ -88,16 +90,20 @@ bHeight = El.height(b)
8890bWidth = El. width (b)
8991
9092if display
91- show (IO, A)
93+ El. print (A, " A" )
94+ # El.print(b, "b")
9295end
93- ctrl = El. LPAffineCtrl (Float64,
94- mehrotraCtrl = El. MehrotraCtrl (Float64,
95- solveCtrl = El. RegSolveCtrl (Float64, progress = true ),
96- print = true ,
97- outerEquil = true ,
98- time = true ))
9996
100- elapsedLAV = @elapsed x = El. lav (A, b)
97+ ctrl = El. LPAffineCtrl (Float64,
98+ mehrotraCtrl= El. MehrotraCtrl (Float64,
99+ solveCtrl= El. RegSolveCtrl (Float64,
100+ progress= true ),
101+ print= true ,
102+ outerEquil= true ,
103+ time= true )
104+ )
105+
106+ # elapsedLAV = @elapsed x = El.lav(A, b);#Elemental.print(A, "Matrix A")
101107elapsedLAV = @elapsed x = El. lav (A, b, ctrl)
102108
103109if El. MPI. commRank (El. MPI. CommWorld[]) == 0
128134rLS = copy (b)
129135mul! (rLS, A, xLS, - 1.0 , 1.0 )
130136if display
131- El. Display ( rLS, " A x_{LS} - b" )
137+ El. print ( rLS, " A x_{LS} - b" )
132138end
133139
134140rLSTwoNorm = El. nrm2 (rLS)
0 commit comments