Skip to content
Snippets Groups Projects

Tested the c++ codes run on GPUs and fixed unit tests associated with them

Open Pradipta Samanta requested to merge fix-cpp-codes-gpu into feature-add-cpp-codes
1 file
+ 0
5
Compare changes
  • Side-by-side
  • Inline
@@ -117,7 +117,6 @@ TYPED_TEST(HorizontalDivTest, TestDiv3DSpecific) {
cell_edge_blk_h[cell_edge_at(i, 0, j)] = 0;
}
// Geometric factors
geofac_div_h[geofac_div_at(i, 0, 0)] = static_cast<TypeParam>(0.5);
geofac_div_h[geofac_div_at(i, 1, 0)] = static_cast<TypeParam>(0.3);
geofac_div_h[geofac_div_at(i, 2, 0)] = static_cast<TypeParam>(0.2);
@@ -153,8 +152,6 @@ TYPED_TEST(HorizontalDivTest, TestDiv3DSpecific) {
EXPECT_NEAR(div_vec_c_h(div_vec_c_at(2, 1, 0)), static_cast<TypeParam>(4.4), 1e-6);
}
// write another unit test for the same function where the input arrays are filled with random values
TYPED_TEST(HorizontalDivTest, TestDiv3DRandom) {
constexpr int nproma = this->nproma;
constexpr int nlev = this->nlev;
@@ -479,8 +476,6 @@ TYPED_TEST(HorizontalDivTest, TestDiv3D2FRandom) {
}
}
// Third unit test: div4d
TYPED_TEST(HorizontalDivTest, TestDiv4DSpecific) {
constexpr int nproma = this->nproma;
constexpr int nlev = this->nlev;
Loading