def test_assemble_mixed_rhs_vector(self, backend, mset, mmap, mvdat):
        dat = op2.MixedDat(mset ** 2)
        assembly = Block(
            [Incr(Symbol("v", ("i"), ((2, 0),)), FlatBlock("d[i][0]")),
             Incr(Symbol("v", ("i"), ((2, 1),)), FlatBlock("d[i][1]"))], open_scope=True)
        kernel_code = FunDecl("void", "addone_rhs_vec",
                              [Decl("double", Symbol("v", (6,))),
                               Decl("double**", c_sym("d"))],
                              c_for("i", 3, assembly))
        addone = op2.Kernel(kernel_code, "addone_rhs_vec")
        op2.par_loop(addone, mmap.iterset,
                     dat(op2.INC, mmap[op2.i[0]]),
                     mvdat(op2.READ, mmap))
        eps = 1.e-12
        exp = np.kron(zip([1.0, 4.0, 6.0, 4.0]), np.ones(2))
        assert_allclose(dat[0].data_ro, np.kron(zip(rdata(3)), np.ones(2)), eps)
        assert_allclose(dat[1].data_ro, exp, eps)
Assemble a simple right-hand side over a mixed space and check result.
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_matrices.py/TestMixedMatrices.test_assemble_mixed_rhs_vector