def test_shape(self):

        grid = grid_from_sphere(2)
        space_const = function_space(grid,"DP",0)
        space_lin = function_space(grid,"P",1)
        op = laplace_slp(space_lin,space_lin,space_const).weak_form()
        assert op.shape==(space_const.global_dof_count,space_lin.global_dof_count)
    def test_shape(self):

        grid = grid_from_sphere(2)
        space_const = function_space(grid, "DP", 0)
        space_lin = function_space(grid, "P", 1)
        op = laplace_slp(space_lin, space_lin, space_const).weak_form()
        assert op.shape == (space_const.global_dof_count,
                            space_lin.global_dof_count)
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid, "DP", 0)
    return laplace_slp(space, space, space).weak_form()
Example #4
0
def real_operator(space):
    return laplace_slp(space,space,space)
Example #5
0
def real_operator(space):
    return laplace_slp(space, space, space)
def real_operator():
    grid = grid_from_sphere(3)
    space = function_space(grid,"DP",0)
    return laplace_slp(space,space,space).weak_form()