diff --git a/demo/MixedGradient.py b/demo/MixedGradient.py deleted file mode 100644 index 4456513ea..000000000 --- a/demo/MixedGradient.py +++ /dev/null @@ -1,15 +0,0 @@ -"""Mixed gradient demo.""" - -import basix.ufl -from ufl import FunctionSpace, Mesh, TestFunctions, TrialFunctions, ds, grad, inner - -element1 = basix.ufl.element("DG", "triangle", 1) -element2 = basix.ufl.element("DGT", "triangle", 1) -element = basix.ufl.mixed_element([element1, element2]) -domain = Mesh(basix.ufl.element("Lagrange", "triangle", 1, shape=(2,))) -space = FunctionSpace(domain, element) - -u = TrialFunctions(space)[0] -v = TestFunctions(space)[0] - -a = inner(grad(u), grad(v)) * ds diff --git a/demo/TraceElement.py b/demo/TraceElement.py deleted file mode 100644 index 58a9f1632..000000000 --- a/demo/TraceElement.py +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (C) 2015 Marie E. Rognes -# -# This file is part of FFCx. -# -# FFCx is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# FFCx is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with FFCx. If not, see . -"""Trace element demo.""" - -import basix.ufl -from ufl import FunctionSpace, Mesh, TestFunction, avg, dS, ds - -element = basix.ufl.element("HDiv Trace", "triangle", 0) -domain = Mesh(basix.ufl.element("Lagrange", "triangle", 1, shape=(2,))) -space = FunctionSpace(domain, element) -v = TestFunction(space) -L = v * ds + avg(v) * dS diff --git a/demo/test_demos.py b/demo/test_demos.py index c601593bf..182feedca 100644 --- a/demo/test_demos.py +++ b/demo/test_demos.py @@ -23,15 +23,6 @@ def test_demo(file, scalar_type): if file == "Symmetry": pytest.xfail("Demo currently failing. See https://github.com/FEniCS/ufl/issues/343.") - if file in [ - "MixedGradient", - "TraceElement", # HDiv Trace - "MixedElasticity", # VectorElement of BDM - "RestrictedElement", - "_TensorProductElement", - ]: - # Skip demos that use elements not yet implemented in Basix - pytest.skip(reason="Element not yet implemented in Basix") if "complex" in scalar_type and file in [ "BiharmonicHHJ",