Skip to content

Commit

Permalink
Bugfix for regional grids with ny > nx
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmenetrier authored and wdeconinck committed Feb 27, 2024
1 parent 61b2933 commit 4e2a055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atlas/functionspace/detail/StructuredColumns_setup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void StructuredColumns::setup(const grid::Distribution& distribution, const ecki
idx_t jj_max = j + halo;
if (regional) {
jj_min = std::max(jj_min, idx_t{0});
jj_max = std::min(jj_max, grid_->nx(j) - idx_t{1});
jj_max = std::min(jj_max, grid_->ny() - idx_t{1});
}
for (idx_t jj = jj_min; jj <= jj_max; ++jj) {
idx_t jjj = compute_j(jj);
Expand Down

0 comments on commit 4e2a055

Please sign in to comment.