From cbbc4a7d7ba0e7b1b8f58c740ccb06ba1b8680fa Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Wed, 30 Oct 2024 13:54:35 +0900 Subject: [PATCH] fix: format --- common/src/KokkosFFT_utils.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/src/KokkosFFT_utils.hpp b/common/src/KokkosFFT_utils.hpp index f931a91a..286534d4 100644 --- a/common/src/KokkosFFT_utils.hpp +++ b/common/src/KokkosFFT_utils.hpp @@ -210,14 +210,15 @@ auto extract_extents(const ViewType& view) { } template -std::array shrank_extents(const InViewType& in, const OutViewType& out) { - static_assert(KokkosFFT::Impl::have_same_rank_v, - "shrank_extents: InViewType and OutViewType must have the same rank."); +std::array shrank_extents(const InViewType& in, + const OutViewType& out) { static_assert( - std::is_integral_v, - "shrank_extents: IntType must be an integral type"); + KokkosFFT::Impl::have_same_rank_v, + "shrank_extents: InViewType and OutViewType must have the same rank."); + static_assert(std::is_integral_v, + "shrank_extents: IntType must be an integral type"); constexpr std::size_t rank = InViewType::rank(); - using extents_type = std::array; + using extents_type = std::array; extents_type extents; for (std::size_t i = 0; i < rank; i++) { @@ -229,9 +230,8 @@ std::array shrank_extents(const InViewType& in, const template Layout create_layout(const ContainerType& extents) { using IntType = KokkosFFT::Impl::base_container_value_type; - static_assert( - std::is_integral_v, - "create_layout: IntType must be an integral type"); + static_assert(std::is_integral_v, + "create_layout: IntType must be an integral type"); static_assert(std::is_same_v || std::is_same_v, "create_layout: Layout must be either Kokkos::LayoutLeft or "