(mode, dtype)
| 81 | @pytest.mark.parametrize("mode", [GhostMode.none, GhostMode.shared_facet]) |
| 82 | @dtype_parametrize |
| 83 | def test_assemble_functional_ds(mode, dtype): |
| 84 | xtype = dtype(0).real.dtype |
| 85 | mesh = create_unit_square(MPI.COMM_WORLD, 12, 12, ghost_mode=mode, dtype=xtype) |
| 86 | M = form(1.0 * ds(domain=mesh), dtype=dtype) |
| 87 | value = assemble_scalar(M) |
| 88 | value = mesh.comm.allreduce(value, op=MPI.SUM) |
| 89 | assert value == pytest.approx(4.0, 1e-6) |
| 90 | |
| 91 | |
| 92 | @dtype_parametrize |
nothing calls this directly
no test coverage detected