Lines Matching refs:v2
85 v2 = v1.duplicate()
87 v2.set(2)
88 v1.swap(v2)
91 self.assertEqual(v2[idx], 1)
214 w2, v2 = w[e - 1], v[e - 1]
216 self.assertEqual(w2, v2)
320 v2 = PETSc.Vec().createWithArray(a, size=5, comm=PETSc.COMM_SELF)
324 self.assertTrue(v2.size == 5)
329 a2 = v2.getDict()['__array__']
338 v2 = PETSc.Vec().createWithArray(a, size=(5, None), comm=PETSc.COMM_WORLD)
342 self.assertTrue(v2.local_size == 5)
347 a2 = v2.getDict()['__array__']