Skip to content

Commit

Permalink
Restore old code if ndebug not on
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Dec 4, 2024
1 parent 992e4fc commit da59a7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/eamxx/src/physics/shoc/impl/shoc_pblintd_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void Functions<S,D>::pblintd(
// Scalarize views for single entry access
const auto s_z = ekat::scalarize(z);
const auto s_thv = ekat::scalarize(thv);
const auto s_rino = ekat::scalarize(rino);
const auto s_zi = ekat::scalarize(zi);
const auto s_cldn = ekat::scalarize(cldn);

Expand All @@ -82,6 +83,8 @@ void Functions<S,D>::pblintd(
for (size_t i=0; i<rino.size(); ++i) {
rino(i)=0;
}
#else
s_rino(nlev-1) = 0;
#endif
pblh = s_z(nlev-1);

Expand Down

0 comments on commit da59a7b

Please sign in to comment.