Skip to content

Commit

Permalink
Use KOKKOS_INLINE_FUNCTION
Browse files Browse the repository at this point in the history
  • Loading branch information
tcclevenger committed Aug 1, 2024
1 parent 230428f commit 2130b73
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_buoyancy_flux(
const Spack& wthlsec,
const Spack& wqwsec,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_cloud_liquid_variance(
const Spack& a,
const Spack& s1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_liquid_water_flux(
const Spack& a,
const Spack& w1_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_qs(
const Spack& Tl1_1,
const Spack& Tl1_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_s(
const Spack& qw1,
const Spack& qs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_sgs_liquid(
const Spack& a,
const Spack& ql1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_compute_temperature(
const Spack& thl1,
const Spack& pval,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_inplume_correlations(
const Spack& sqrtqw2_1,
const Spack& sqrtthl2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_qw_parameters(
const Spack& wqwsec,
const Spack& sqrtw2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_thl_parameters(
const Spack& wthlsec,
const Spack& sqrtw2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_tilde_to_real(
const Spack& w_first,
const Spack& sqrtw2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace shoc {
*/

template<typename S, typename D>
KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
void Functions<S,D>::shoc_assumed_pdf_vv_parameters(
const Spack& w_first,
const Spack& w_sec,
Expand Down
24 changes: 12 additions & 12 deletions components/eamxx/src/physics/shoc/shoc_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,15 +780,15 @@ struct Functions
const view_2d<Spack>& shoc_ql2);
#endif

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_buoyancy_flux(
const Spack& wthlsec,
const Spack& wqwsec,
const Spack& pval,
const Spack& wqls,
Spack& wthv_sec);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_cloud_liquid_variance(
const Spack& a,
const Spack& s1,
Expand All @@ -803,7 +803,7 @@ struct Functions
Spack& shoc_ql2);


KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_liquid_water_flux(
const Spack& a,
const Spack& w1_1,
Expand All @@ -813,7 +813,7 @@ struct Functions
const Spack& ql2,
Spack& wqls);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_qs(
const Spack& Tl1_1,
const Spack& Tl1_2,
Expand All @@ -824,7 +824,7 @@ struct Functions
Spack& qs2,
Spack& beta2);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_s(
const Spack& qw1,
const Spack& qs,
Expand All @@ -840,20 +840,20 @@ struct Functions
Spack& qn,
Spack& C);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_sgs_liquid(
const Spack& a,
const Spack& ql1,
const Spack& ql2,
Spack& shoc_ql);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_compute_temperature(
const Spack& thl1,
const Spack& pval,
Spack& Tl1);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_inplume_correlations(
const Spack& sqrtqw2_1,
const Spack& sqrtthl2_1,
Expand All @@ -869,7 +869,7 @@ struct Functions
const Spack& thl1_2,
Spack& r_qwthl_1);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_qw_parameters(
const Spack& wqwsec,
const Spack& sqrtw2,
Expand All @@ -889,7 +889,7 @@ struct Functions
Spack& sqrtqw2_1,
Spack& sqrtqw2_2);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_thl_parameters(
const Spack& wthlsec,
const Spack& sqrtw2,
Expand All @@ -909,13 +909,13 @@ struct Functions
Spack& sqrtthl2_1,
Spack& sqrtthl2_2);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_tilde_to_real(
const Spack& w_first,
const Spack& sqrtw2,
Spack& w1);

KOKKOS_FUNCTION
KOKKOS_INLINE_FUNCTION
static void shoc_assumed_pdf_vv_parameters(
const Spack& w_first,
const Spack& w_sec,
Expand Down

0 comments on commit 2130b73

Please sign in to comment.