Skip to content

Commit

Permalink
Fixup atlas_test_earth for eckit version < 1.24.0 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Dec 3, 2024
1 parent b9cc8d5 commit fa9523e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/util/test_earth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <cmath>
#include <limits>

#include "eckit/eckit_version.h"

#include "atlas/util/Earth.h"
#include "atlas/util/Point.h"
#include "atlas/util/Geometry.h"
Expand Down Expand Up @@ -171,6 +173,9 @@ CASE("test_earth_great_circle_latitude_given_longitude") {
}

CASE("test_across_pole") {
if (eckit_version_int() < 12400) {
return;
}
const PointLonLat P1{-16.875,-105.255};
atlas::geometry::Earth geo;
EXPECT_APPROX_EQ(geo.xyz(P1), PointXYZ(-1.60418e+06,486624,-6.14673e+06), 50.);
Expand Down

0 comments on commit fa9523e

Please sign in to comment.