@@ -296,6 +296,7 @@ PropertyCheck::ResultAndMsg MassAndEnergyConservationCheck::check() const
296
296
297
297
void MassAndEnergyConservationCheck::global_fixer (const bool & print_debug_info)
298
298
{
299
+ using TPF = ekat::TeamPolicyFactory<DefaultDevice::execution_space>;
299
300
const auto ncols = m_num_cols;
300
301
const auto nlevs = m_num_levs;
301
302
@@ -320,7 +321,7 @@ void MassAndEnergyConservationCheck::global_fixer(const bool & print_debug_info)
320
321
const auto ice_flux = m_fields.at (" ice_flux" ).get_view <const Real*>();
321
322
const auto heat_flux = m_fields.at (" heat_flux" ).get_view <const Real*>();
322
323
323
- const auto policy = ExeSpaceUtils ::get_default_team_policy (ncols, nlevs);
324
+ const auto policy = TPF ::get_default_team_policy (ncols, nlevs);
324
325
325
326
using namespace ekat ::units;
326
327
using namespace ShortFieldTagsNames ;
@@ -476,10 +477,11 @@ compute_gas_mass_on_column (const KT::MemberType& team,
476
477
const int nlevs,
477
478
const uview_1d<const Real>& pseudo_density)
478
479
{
480
+ using RU = ekat::ReductionUtils<DefaultDevice::execution_space>;
479
481
using PC = scream::physics::Constants<Real>;
480
482
const Real gravit = PC::gravit;
481
483
482
- return ExeSpaceUtils ::parallel_reduce<Real>(team, 0 , nlevs,
484
+ return RU ::parallel_reduce<Real>(team, 0 , nlevs,
483
485
[&] (const int lev, Real& local_mass) {
484
486
local_mass += pseudo_density (lev)/gravit;
485
487
});
0 commit comments