Closed zjwegert closed 1 year ago
It's expected bahaviour, your ghosts are not correct. The ghost layout for the matrix colums is given by A.cols, which is what you should use to allocate your PVector.
Try allocating x = PVector(0.0, A.cols)
If you need the dof values, just copy over the owned part to your new pvector x, and exchange the ghosts using exchange!
That's exactly what I needed. Thank you!
Hi all,
The following fails with a
A check failed
error:This outputs:
If you instead do
U = op.op.matrix\op.op.vector
,K*U
works as expected.Version info:
+