Skip to content

Commit a11efdc

Browse files
committed
MAM4xx: use constexpr for wgt.
1 parent d977eaf commit a11efdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mam4xx/mo_chm_diags.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void chm_diags(
254254

255255
for (int mm = 0; mm < gas_pcnst; mm++) {
256256
// other options of species are not used, only use weight=1
257-
const Real wgt = 1;
257+
constexpr Real wgt = 1;
258258

259259
for (int i = 0; i < 3; i++) { // FIXME: bad constant (len of sox species)
260260
if (sox_species[i] == mm) {
@@ -300,7 +300,7 @@ void chm_diags(
300300
Kokkos::TeamVectorRange(team, gas_pcnst_local),
301301
[&](int mm, Real &update) {
302302
// other options of species are not used, only use weight=1
303-
const Real wgt = 1;
303+
constexpr Real wgt = 1;
304304
for (int i = 0; i < 3;
305305
i++) { // FIXME: bad constant (len of sox species)
306306
if (sox_species[i] == mm) {

0 commit comments

Comments
 (0)