include/pops/core/foundation/types.hpp Source FileΒΆ

adc_cpp: include/pops/core/foundation/types.hpp Source File
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends
types.hpp
Go to the documentation of this file.
1#pragma once
2
18
19#if defined(POPS_HAS_KOKKOS)
20#include <Kokkos_Macros.hpp>
21#define POPS_HD KOKKOS_FUNCTION
22#elif defined(__CUDACC__) || defined(__HIPCC__)
23#define POPS_HD __host__ __device__
24#else
25#define POPS_HD
26#endif
27
28namespace pops {
29
30using Real = double;
31
38inline constexpr Real kCflSpeedFloor = Real(1e-30);
39
40} // namespace pops
Definition amr_hierarchy.hpp:29
constexpr Real kCflSpeedFloor
Speed FLOOR for the CFL step policies (audit 2026-06, explicit constant instead of the scattered lite...
Definition types.hpp:38
double Real
Definition types.hpp:30