diff --git a/Derivs/src/derivs.hxx b/Derivs/src/derivs.hxx index 18e26418b..44f5ed330 100644 --- a/Derivs/src/derivs.hxx +++ b/Derivs/src/derivs.hxx @@ -112,7 +112,7 @@ interp1d(const simdl &mask, const T *restrict const var) { } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv1d(const TS var, const T dx) { @@ -121,7 +121,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv1d(const TS var, const T dx) { @@ -131,7 +131,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv1d(const TS var, const T dx) { @@ -144,7 +144,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE template inline CCTK_ATTRIBUTE_ALWAYS_INLINE - CCTK_DEVICE CCTK_HOST std::enable_if_t > + CCTK_DEVICE CCTK_HOST std::enable_if_t> deriv1d_upwind(const simdl &mask, const T *restrict const var, const std::ptrdiff_t di, const simd &vel, const T dx) { // arXiv:1111.2177 [gr-qc], (71) @@ -192,7 +192,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE template inline CCTK_ATTRIBUTE_ALWAYS_INLINE - CCTK_DEVICE CCTK_HOST std::enable_if_t > + CCTK_DEVICE CCTK_HOST std::enable_if_t> deriv1d_upwind(const simdl &mask, const T *restrict const var, const std::ptrdiff_t di, const simd &vel, const T dx) { // arXiv:1111.2177 [gr-qc], (71) @@ -239,7 +239,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv2_1d(const TS var, const T dx) { @@ -251,7 +251,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv2_1d(const TS var, const T dx) { @@ -268,7 +268,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST std::enable_if_t deriv2_1d(const TS var, const T dx) { @@ -290,7 +290,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE } template > + typename R = std::result_of_t> inline CCTK_ATTRIBUTE_ALWAYS_INLINE CCTK_DEVICE CCTK_HOST R deriv2_2d(const TS var, const T dx, const T dy) { // We assume that the x-direction might be special since it might @@ -385,7 +385,7 @@ deriv2_2d(const TS var, const T dx, const T dy) { template inline CCTK_ATTRIBUTE_ALWAYS_INLINE - CCTK_DEVICE CCTK_HOST std::enable_if_t > + CCTK_DEVICE CCTK_HOST std::enable_if_t> diss1d(const simdl &mask, const T *restrict const var, const std::ptrdiff_t di, const T dx) { constexpr T c0 = 6; @@ -400,7 +400,7 @@ inline CCTK_ATTRIBUTE_ALWAYS_INLINE template inline CCTK_ATTRIBUTE_ALWAYS_INLINE - CCTK_DEVICE CCTK_HOST std::enable_if_t > + CCTK_DEVICE CCTK_HOST std::enable_if_t> diss1d(const simdl &mask, const T *restrict const var, const std::ptrdiff_t di, const T dx) { constexpr T c0 = -20;