From 3ab844112b71b49beb3889277a90e861247c2283 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 10 Apr 2024 17:15:37 -0600 Subject: [PATCH] view_builder.hpp: formatting --- unit_tests/view_builder.hpp | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/unit_tests/view_builder.hpp b/unit_tests/view_builder.hpp index 57cf31c9..2e43bf7d 100644 --- a/unit_tests/view_builder.hpp +++ b/unit_tests/view_builder.hpp @@ -24,30 +24,25 @@ struct noncontig {}; template struct ViewBuilder; - template struct ViewBuilder { - static auto view(noncontig, int e0) { - - // this is C-style layout, i.e. v(0,0) is next to v(0,1) - Kokkos::View v("", e0, 2); - return Kokkos::subview(v, Kokkos::ALL, 1); // take column 1 - } + static auto view(noncontig, int e0) { + // this is C-style layout, i.e. v(0,0) is next to v(0,1) + Kokkos::View v("", e0, 2); + return Kokkos::subview(v, Kokkos::ALL, 1); // take column 1 + } - static auto view(contig, int e0) { - return Kokkos::View("", e0); - } + static auto view(contig, int e0) { return Kokkos::View("", e0); } }; template struct ViewBuilder { - static auto view(noncontig, int e0, int e1) { - - Kokkos::View v("", e0, e1, 2); - return Kokkos::subview(v, Kokkos::ALL, Kokkos::ALL, 1); - } - - static auto view(contig, int e0, int e1) { - return Kokkos::View("", e0, e1); - } + static auto view(noncontig, int e0, int e1) { + Kokkos::View v("", e0, e1, 2); + return Kokkos::subview(v, Kokkos::ALL, Kokkos::ALL, 1); + } + + static auto view(contig, int e0, int e1) { + return Kokkos::View("", e0, e1); + } }; \ No newline at end of file