Skip to content

Commit e8cc3e1

Browse files
committed
eckit::geo Grid
1 parent b92bde4 commit e8cc3e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/eckit/geo/grid/regular/RegularLL.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ void RegularLL::fill_spec(spec::Custom& custom) const {
9090
custom.set("order", o);
9191
}
9292

93-
if (auto ref{reference()}; !points_equal(ref, PointLonLat{})) {
93+
if (const auto first = first_point(); !points_equal(first, PointLonLat{x_.a(), y_.a()})) {
94+
const auto ref{reference()};
9495
custom.set("reference", std::vector<double>{ref.lon(), ref.lat()});
9596
}
9697

0 commit comments

Comments
 (0)