Skip to content

Commit

Permalink
change upper loop limit logic in chem_diagb.h (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Feb 27, 2025
1 parent 0a1a96c commit aa62c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/chem/chem_diagb.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ namespace gdasapp {
auto stdDevBkg = atlas::array::make_view<double, 2>(bkgErrFs[var]);

// Loops through nodes and levels
for (atlas::idx_t level = 0; level <= xbFs[var].shape(1); ++level) {
for (atlas::idx_t level = 0; level < xbFs[var].shape(1); ++level) {
for (atlas::idx_t jnode = 0; jnode < xbFs[var].shape(0); ++jnode) {
std::vector<double> local;
auto neighbors = get_neighbors_of_node(jnode);
Expand Down

0 comments on commit aa62c74

Please sign in to comment.