(n, bs)
| 20 | |
| 21 | |
| 22 | def create_test_sparsity(n, bs): |
| 23 | im = IndexMap(MPI.COMM_WORLD, n) |
| 24 | sp = SparsityPattern(MPI.COMM_WORLD, [im, im], [bs, bs]) |
| 25 | if bs == 1: |
| 26 | for i in range(2): |
| 27 | for j in range(2): |
| 28 | sp.insert(2 + i, 4 + j) |
| 29 | elif bs == 2: |
| 30 | sp.insert(1, 2) |
| 31 | sp.finalize() |
| 32 | return sp |
| 33 | |
| 34 | |
| 35 | @pytest.mark.parametrize("dtype", [np.float32, np.float64, np.complex64, np.complex128]) |
no test coverage detected