diff --git a/python/dune/perftool/sumfact/basis.py b/python/dune/perftool/sumfact/basis.py index 46563ee1f6805037b13b13136e16f2fcc1d23ff0..19278ef7ff5fe6cfbefdd9534f30bbe4ee5ea345 100644 --- a/python/dune/perftool/sumfact/basis.py +++ b/python/dune/perftool/sumfact/basis.py @@ -64,9 +64,12 @@ class LFSSumfactKernelInput(SumfactKernelInputBase, ImmutableRecord): restriction=restriction, ) - def __str__(self): + def __repr__(self): return "{}_{}".format(self.coeff_func(self.restriction), self.element_index) + def __str__(self): + return repr(self) + def realize(self, sf, index, insn_dep): lfs = name_lfs(self.element, self.restriction, self.element_index) basisiname = sumfact_iname(name_lfs_bound(lfs), "basis") diff --git a/python/dune/perftool/sumfact/vectorization.py b/python/dune/perftool/sumfact/vectorization.py index 05a69b3663e529f502f60069e1c7c156bae33c6e..3702e7702773581d903dc7d06abe2a52a94b775f 100644 --- a/python/dune/perftool/sumfact/vectorization.py +++ b/python/dune/perftool/sumfact/vectorization.py @@ -185,11 +185,6 @@ def decide_vectorization_strategy(): if get_option("vectorization_strategy") == "fromlist": # This is a bit special and does not follow the minimization procedure at all - # Check that we are using python2 - import sys - if not sys.version_info[0] == 2: - raise PerftoolVectorizationError("fromlist vectorization relies on iteration order and therefore needs python2. Yes, I know this is broken design. It is only used for one plot in the paper though.") - def _choose_strategy_from_list(stage1_sumfacts): strategy = 0 for qp in quad_points: