Skip to content

Commit 33f9559

Browse files
committed
Do not push
1 parent fcf2518 commit 33f9559

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

components/eamxx/src/physics/rrtmgp/scream_rrtmgp_interface.hpp

+12-4
Original file line numberDiff line numberDiff line change
@@ -1134,10 +1134,18 @@ static void get_subcolumn_mask(const int ncol, const int nlay, const int ngpt, c
11341134
// }
11351135
// }
11361136
// }));
1137-
TIMED_KERNEL(Kokkos::parallel_for(MDRP::template get<3>({ncol, nlay, ngpt}), KOKKOS_LAMBDA(int icol, int ilay, int igpt) {
1138-
conv::Random rand(seeds(icol) + ilay*ngpt + igpt);
1139-
cldx(icol,ilay,igpt) = rand.genFP<RealT>();
1140-
}));
1137+
Kokkos::parallel_for(ncol, KOKKOS_LAMBDA(int icol) {
1138+
conv::Random rand(seeds(icol));
1139+
for (int igpt = 0; igpt < ngpt; igpt++) {
1140+
for (int ilay = 0; ilay < nlay; ilay++) {
1141+
cldx(icol,ilay,igpt) = rand.genFP<RealT>();
1142+
}
1143+
}
1144+
});
1145+
// TIMED_KERNEL(Kokkos::parallel_for(MDRP::template get<3>({ncol, nlay, ngpt}), KOKKOS_LAMBDA(int icol, int ilay, int igpt) {
1146+
// conv::Random rand(seeds(icol) + ilay*ngpt + igpt);
1147+
// cldx(icol,ilay,igpt) = rand.genFP<RealT>();
1148+
// }));
11411149

11421150
// Step down columns and apply algorithm from eq (14)
11431151
TIMED_KERNEL(Kokkos::parallel_for(MDRP::template get<2>({ncol,ngpt}), KOKKOS_LAMBDA(int icol, int igpt) {

0 commit comments

Comments
 (0)