Skip to content

Commit

Permalink
fixup: use Kokkos pi constant
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Jan 6, 2025
1 parent 67164c1 commit 8219dcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/CabanaPD_Constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
#ifndef CONSTANTS_H
#define CONSTANTS_H

#include "mpi.h"
#include "Kokkos_Core.hpp"

namespace CabanaPD
{

// FIXME: Kokkos::numbers::pi_v<double> when minimum 4.0 is required.
constexpr double pi = M_PI;
constexpr double pi = Kokkos::numbers::pi_v<double>;

} // namespace CabanaPD
#endif

0 comments on commit 8219dcb

Please sign in to comment.