diff --git a/src/Interpolation/CIC.hpp b/src/Interpolation/CIC.hpp index 45d23bc20..0473a6b85 100644 --- a/src/Interpolation/CIC.hpp +++ b/src/Interpolation/CIC.hpp @@ -47,7 +47,7 @@ namespace ippl { } template + typename IndexType> KOKKOS_INLINE_FUNCTION constexpr int scatterToPoint( const std::index_sequence&, const typename detail::ViewType::view_type& view, const Vector& wlo, @@ -57,8 +57,7 @@ namespace ippl { return 0; } - template + template KOKKOS_INLINE_FUNCTION constexpr void scatterToField( const std::index_sequence&, const typename detail::ViewType::view_type& view, const Vector& wlo, @@ -70,7 +69,7 @@ namespace ippl { } template + typename IndexType> KOKKOS_INLINE_FUNCTION constexpr T gatherFromPoint( const std::index_sequence&, const typename detail::ViewType::view_type& view, const Vector& wlo, @@ -79,8 +78,7 @@ namespace ippl { * view(interpolationIndex(args)...); } - template + template KOKKOS_INLINE_FUNCTION constexpr T gatherFromField( const std::index_sequence&, const typename detail::ViewType::view_type& view, const Vector& wlo, diff --git a/src/Ippl.cpp b/src/Ippl.cpp index 51a00fb0a..2b2f9e864 100644 --- a/src/Ippl.cpp +++ b/src/Ippl.cpp @@ -144,6 +144,8 @@ T Ippl::getNumericalOption(const char* arg) { throw std::runtime_error("Expected floating point argument!"); } } + // Silence nvcc warning: missing return statement at end of non-void function + throw std::runtime_error("Unreachable state"); } /////////////////////////////////////////////////////////////////////