Test creation of a distributed vector.
(dtype)
| 119 | ], |
| 120 | ) |
| 121 | def test_create_vector(dtype): |
| 122 | """Test creation of a distributed vector.""" |
| 123 | mesh = create_unit_square(MPI.COMM_WORLD, 5, 5) |
| 124 | im = mesh.topology.index_map(0) |
| 125 | |
| 126 | for bs in range(1, 4): |
| 127 | x = la.vector(im, bs=bs, dtype=dtype) |
| 128 | assert x.array.dtype == dtype |
| 129 | assert x.array.size == bs * (im.size_local + im.num_ghosts) |
| 130 | |
| 131 | |
| 132 | def xfail_norm_of_integral_type_vector(dtype): |
nothing calls this directly
no test coverage detected