From 46e91241f424696aaff5f1adf8708ac9a40d2906 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Tue, 22 Nov 2016 17:03:13 +0100
Subject: [PATCH] pep8

---
 python/dune/perftool/generation/loopy.py                      | 2 +-
 python/dune/perftool/loopy/target.py                          | 4 ++--
 .../dune/perftool/loopy/transformations/collect_precompute.py | 2 +-
 python/dune/perftool/loopy/transformations/collect_rotate.py  | 3 +--
 python/dune/perftool/loopy/transformations/vectorview.py      | 3 ++-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/python/dune/perftool/generation/loopy.py b/python/dune/perftool/generation/loopy.py
index bdca6a9f..133a1f17 100644
--- a/python/dune/perftool/generation/loopy.py
+++ b/python/dune/perftool/generation/loopy.py
@@ -144,4 +144,4 @@ def barrier(**kwargs):
     assert 'id' not in kwargs
     name = 'barrier_{}'.format(get_counter('barrier'))
     _barrier(id=name, **kwargs)
-    return name
\ No newline at end of file
+    return name
diff --git a/python/dune/perftool/loopy/target.py b/python/dune/perftool/loopy/target.py
index a28a10ad..55fb43c7 100644
--- a/python/dune/perftool/loopy/target.py
+++ b/python/dune/perftool/loopy/target.py
@@ -75,8 +75,8 @@ class DuneCExpressionToCodeMapper(CExpressionToCodeMapper):
         result = self.rec(children.pop(), PREC_NONE)
         while children:
             result = "std::%s(%s, %s)" % (what,
-                        self.rec(children.pop(), PREC_NONE),
-                        result)
+                                          self.rec(children.pop(), PREC_NONE),
+                                          result)
 
         return result
 
diff --git a/python/dune/perftool/loopy/transformations/collect_precompute.py b/python/dune/perftool/loopy/transformations/collect_precompute.py
index 2324defc..9eda9688 100644
--- a/python/dune/perftool/loopy/transformations/collect_precompute.py
+++ b/python/dune/perftool/loopy/transformations/collect_precompute.py
@@ -107,6 +107,6 @@ def collect_vector_data_precompute(knl, insns, inames):
                                        within_inames=frozenset(new_inames),
                                        within_inames_is_final=True,
                                        )
-                          )
+                         )
 
     return knl.copy(instructions=new_insns + other_insns)
diff --git a/python/dune/perftool/loopy/transformations/collect_rotate.py b/python/dune/perftool/loopy/transformations/collect_rotate.py
index 16a472c8..e39595f9 100644
--- a/python/dune/perftool/loopy/transformations/collect_rotate.py
+++ b/python/dune/perftool/loopy/transformations/collect_rotate.py
@@ -101,7 +101,7 @@ def collect_vector_data_rotate(knl, insns, inames):
                     new_insns.append(insn.copy(assignee=replacemap_arr[get_pymbolic_basename(insn.assignee)],
                                                depends_on_is_final=True,
                                                )
-                                 )
+                                     )
                 elif isinstance(insn, lp.CInstruction):
                     # Rip apart the code and change the assignee
                     assignee, expression = insn.code.split("=")
@@ -175,7 +175,6 @@ def collect_vector_data_rotate(knl, insns, inames):
     # Add a continue statement depending on the rotate index
     #
 
-
     # Determine the condition for the continue statement
     upper_bound = prim.Product(tuple(pw_aff_to_expr(knl.get_iname_bounds(i).size) for i in inames))
     total_check = prim.Comparison(prim.Variable("total_index"), "<", upper_bound)
diff --git a/python/dune/perftool/loopy/transformations/vectorview.py b/python/dune/perftool/loopy/transformations/vectorview.py
index 243a6e52..0fa7ff09 100644
--- a/python/dune/perftool/loopy/transformations/vectorview.py
+++ b/python/dune/perftool/loopy/transformations/vectorview.py
@@ -10,6 +10,7 @@ import loopy as lp
 import numpy as np
 import pymbolic.primitives as prim
 
+
 def get_vector_view_name(tmpname):
     return tmpname + "_vec"
 
@@ -66,4 +67,4 @@ def add_temporary_with_vector_view(knl, name, *args, **kwargs):
     temps[name] = lp.TemporaryVariable(name, *args, **kwargs)
     knl = knl.copy(temporary_variables=temps)
     knl = add_vector_view(knl, name)
-    return knl
\ No newline at end of file
+    return knl
-- 
GitLab