Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jul 29, 2024
1 parent 07282b9 commit dd8c5f9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions common/src/KokkosFFT_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,9 @@ auto convert_negative_axis(ViewType, int _axis = -1) {
static_assert(Kokkos::is_view<ViewType>::value,
"convert_negative_axis: ViewType is not a Kokkos::View.");
int rank = static_cast<int>(ViewType::rank());
<<<<<<< HEAD
if (_axis < -rank || _axis >= rank) {
throw std::runtime_error("axis should be in [-rank, rank-1]");
}
=======

KOKKOSFFT_EXPECTS(_axis >= -rank && _axis < rank,
"Axis must be in [-rank, rank-1]");
>>>>>>> a786585 (improve assertion)

int axis = _axis < 0 ? rank + _axis : _axis;
return axis;
Expand Down

0 comments on commit dd8c5f9

Please sign in to comment.