Skip to content

Commit

Permalink
Use pi in double precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 24, 2024
1 parent 510ad7e commit d85474c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fft/unit_test/Test_Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void fft1(ViewType& in, ViewType& out) {
static_assert(KokkosFFT::Impl::is_complex_v<value_type>,
"fft1: ViewType must be complex");

constexpr auto pi = pi_v<real_value_type>;
constexpr auto pi = pi_v<double>;
const value_type I(0.0, 1.0);
std::size_t L = in.size();

Expand Down Expand Up @@ -134,7 +134,7 @@ void ifft1(ViewType& in, ViewType& out) {
static_assert(KokkosFFT::Impl::is_complex_v<value_type>,
"ifft1: ViewType must be complex");

constexpr auto pi = pi_v<real_value_type>;
constexpr auto pi = pi_v<double>;
const value_type I(0.0, 1.0);
std::size_t L = in.size();

Expand Down

0 comments on commit d85474c

Please sign in to comment.