Skip to content

Commit

Permalink
MIR-666 Interpolation grid-box average on shifted grids with finely-t…
Browse files Browse the repository at this point in the history
…uned bounding box, test fix (completed)
  • Loading branch information
pmaciel committed Jun 18, 2024
1 parent 37c4a0c commit a08667c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mir/repres/gauss/reduced/Reduced.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ std::vector<util::GridBox> Reduced::gridBoxes() const {
r.emplace_back(n, w, s, std::min(bbox_.east().value(), lon1.value()));
}

ASSERT(lon0 < lon1.normalise(lon0));
ASSERT(lon0 <= lon1.normalise(lon0));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/mir/repres/gauss/regular/RegularGG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ std::vector<util::GridBox> RegularGG::gridBoxes() const {
std::max(bbox_.south().value(), latEdges[j + 1]), lonEdges[i + 1]);
}

ASSERT(periodic ? lon0 == lon1.normalise(lon0) : lon0 < lon1.normalise(lon0));
ASSERT(periodic ? lon0 == lon1.normalise(lon0) : lon0 <= lon1.normalise(lon0));
}

ASSERT(r.size() == Ni_ * Nj_);
Expand Down
2 changes: 1 addition & 1 deletion src/mir/repres/latlon/ReducedLL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ std::vector<util::GridBox> ReducedLL::gridBoxes() const {
r.emplace_back(util::GridBox(latEdges[j], w, latEdges[j + 1], e));
}

ASSERT(lon0 < lon1.normalise(lon0));
ASSERT(lon0 <= lon1.normalise(lon0));
}
}

Expand Down

0 comments on commit a08667c

Please sign in to comment.