From 3ec27634a517c1decc871f316b9acf20baca1dd5 Mon Sep 17 00:00:00 2001 From: Pedro Maciel Date: Tue, 18 Jun 2024 00:25:13 +0100 Subject: [PATCH] MIR-666 Interpolation grid-box average on shifted grids with finely-tuned bounding box, test fix --- src/mir/repres/latlon/RegularLL.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir/repres/latlon/RegularLL.cc b/src/mir/repres/latlon/RegularLL.cc index 915c9f98c..b2aac5a7d 100644 --- a/src/mir/repres/latlon/RegularLL.cc +++ b/src/mir/repres/latlon/RegularLL.cc @@ -197,7 +197,7 @@ std::vector RegularLL::gridBoxes() const { r.emplace_back(latEdges[j], lonEdges[i], 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() == numberOfPoints());