From ee96b9f80e0c1974963e859f6f2ba81176de044f Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.r.kempf@gmail.com> Date: Fri, 11 Sep 2015 10:46:04 +0200 Subject: [PATCH] Do not have an extra module for the restriction --- python/dune/perftool/__init__.py | 4 ++++ python/dune/perftool/restriction.py | 4 ---- python/dune/perftool/transformer.py | 2 +- python/dune/perftool/ufl/modified_terminals.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 python/dune/perftool/restriction.py diff --git a/python/dune/perftool/__init__.py b/python/dune/perftool/__init__.py index e69de29b..fa06bca3 100644 --- a/python/dune/perftool/__init__.py +++ b/python/dune/perftool/__init__.py @@ -0,0 +1,4 @@ +class Restriction: + NONE = 0 + POSITIVE = 1 + NEGATIVE = 2 \ No newline at end of file diff --git a/python/dune/perftool/restriction.py b/python/dune/perftool/restriction.py deleted file mode 100644 index fa06bca3..00000000 --- a/python/dune/perftool/restriction.py +++ /dev/null @@ -1,4 +0,0 @@ -class Restriction: - NONE = 0 - POSITIVE = 1 - NEGATIVE = 2 \ No newline at end of file diff --git a/python/dune/perftool/transformer.py b/python/dune/perftool/transformer.py index 903351ca..3213e572 100644 --- a/python/dune/perftool/transformer.py +++ b/python/dune/perftool/transformer.py @@ -7,7 +7,7 @@ import loopy import numpy import ufl -from dune.perftool.restriction import Restriction +from dune.perftool import Restriction # Define the generators that are used here from dune.perftool.generation import generator_factory diff --git a/python/dune/perftool/ufl/modified_terminals.py b/python/dune/perftool/ufl/modified_terminals.py index b8c3900c..00eb30da 100644 --- a/python/dune/perftool/ufl/modified_terminals.py +++ b/python/dune/perftool/ufl/modified_terminals.py @@ -1,7 +1,7 @@ """ A module mimicking some functionality of uflacs' modified terminals """ from ufl.algorithms import MultiFunction -from dune.perftool.restriction import Restriction +from dune.perftool import Restriction class ModifiedTerminalTracker(MultiFunction): -- GitLab