Add the line:
test.vector.ghostUpdate(addv=PETSc.InsertMode.ADD, mode=PETSc.ScatterMode.REVERSE)
or
test.vector.assemble()
after interpolation.
Add the line:
test.vector.ghostUpdate(addv=PETSc.InsertMode.ADD, mode=PETSc.ScatterMode.REVERSE)
or
test.vector.assemble()
after interpolation.