Skip to content

Commit

Permalink
Fix format with correct clang-format version
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricchevalier19 committed Jun 27, 2024
1 parent 3a3229b commit f94d564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions common/unit_test/Test_Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ void test_get_shift(int direction) {
KokkosFFT::axis_type<2> shift1_axis1_odd_ref = {0, direction * n2 / 2};
KokkosFFT::axis_type<2> shift1_axis1_even_ref = {0, direction * n2 / 2};
KokkosFFT::axis_type<2> shift2_odd_ref = {direction * n_odd / 2,
direction * n2 / 2};
direction * n2 / 2};
KokkosFFT::axis_type<2> shift2_even_ref = {direction * n_even / 2,
direction * n2 / 2};
direction * n2 / 2};

auto shift1_odd = KokkosFFT::Impl::_get_shift(
x1_odd, KokkosFFT::axis_type<1>({0}), direction);
Expand Down Expand Up @@ -266,7 +266,7 @@ void test_fftshift1D_2DView(int n0) {

if (n0 % 2 == 0) {
_x_ref = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
-15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
-15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
_y0_ref = {
5, 6, 7, 8, 9, 0, 1, 2, 3, 4, -15, -14, -13, -12, -11,
10, 11, 12, 13, 14, -5, -4, -3, -2, -1, -10, -9, -8, -7, -6,
Expand All @@ -276,7 +276,7 @@ void test_fftshift1D_2DView(int n0) {
10, 11, 12, 13, 14, -15, -14, -13, -12, -11};
} else {
_x_ref = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
-13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
-13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
_y0_ref = {5, 6, 7, 8, 0, 1, 2, 3, 4, -13, -12, -11, -10, 9,
10, 11, 12, 13, -4, -3, -2, -1, -9, -8, -7, -6, -5};
_y1_ref = {-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4,
Expand Down
8 changes: 2 additions & 6 deletions fft/src/KokkosFFT_Plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ class Plan {
explicit Plan(const ExecutionSpace& exec_space, InViewType& in,
OutViewType& out, KokkosFFT::Direction direction, int axis,
std::optional<std::size_t> n = std::nullopt)
: m_exec_space(exec_space),
m_axes({axis}),
m_direction(direction) {
: m_exec_space(exec_space), m_axes({axis}), m_direction(direction) {
static_assert(Kokkos::is_view<InViewType>::value,
"Plan::Plan: InViewType is not a Kokkos::View.");
static_assert(Kokkos::is_view<OutViewType>::value,
Expand Down Expand Up @@ -231,9 +229,7 @@ class Plan {
explicit Plan(const ExecutionSpace& exec_space, InViewType& in,
OutViewType& out, KokkosFFT::Direction direction,
axis_type<DIM> axes, shape_type<DIM> s = {0})
: m_exec_space(exec_space),
m_axes(axes),
m_direction(direction) {
: m_exec_space(exec_space), m_axes(axes), m_direction(direction) {
static_assert(Kokkos::is_view<InViewType>::value,
"Plan::Plan: InViewType is not a Kokkos::View.");
static_assert(Kokkos::is_view<OutViewType>::value,
Expand Down

0 comments on commit f94d564

Please sign in to comment.