Skip to content

Commit

Permalink
Merge Pull Request #2575 from E3SM-Project/scream/tcclevenger/investi…
Browse files Browse the repository at this point in the history
…gate_racecheck_fail

Automatically Merged using E3SM Pull Request AutoTester
PR Title: Add team_barriers to water path tests
PR Author: tcclevenger
PR LABELS: AT: AUTOMERGE, bugfix
  • Loading branch information
E3SM-Bot authored Oct 11, 2023
2 parents 6aec409 + 07bfbb6 commit 68b2b5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/eamxx/src/diagnostics/tests/water_path_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void run(std::mt19937_64& engine)
}
}, Kokkos::Max<Real>(qv_mass_max));
EKAT_KERNEL_REQUIRE(vwp_v(icol)>qv_mass_max);
team.team_barrier();
// Test qc mass
Real qc_mass_max=0.0;
auto qc_icol = ekat::subview(qc_v, icol);
Expand All @@ -227,6 +228,7 @@ void run(std::mt19937_64& engine)
}
}, Kokkos::Max<Real>(qc_mass_max));
EKAT_KERNEL_REQUIRE(lwp_v(icol)>qc_mass_max);
team.team_barrier();
// Test qi mass
Real qi_mass_max=0.0;
auto qi_icol = ekat::subview(qi_v, icol);
Expand All @@ -237,6 +239,7 @@ void run(std::mt19937_64& engine)
}
}, Kokkos::Max<Real>(qi_mass_max));
EKAT_KERNEL_REQUIRE(iwp_v(icol)>qi_mass_max);
team.team_barrier();
// Test qm mass
Real qm_mass_max=0.0;
auto qm_icol = ekat::subview(qm_v, icol);
Expand All @@ -247,7 +250,7 @@ void run(std::mt19937_64& engine)
}
}, Kokkos::Max<Real>(qm_mass_max));
EKAT_KERNEL_REQUIRE(mwp_v(icol)>qm_mass_max);

team.team_barrier();
// Test qr mass
Real qr_mass_max=0.0;
auto qr_icol = ekat::subview(qr_v, icol);
Expand Down

0 comments on commit 68b2b5e

Please sign in to comment.