Skip to content

Commit 5d0f545

Browse files
committed
Tidied up after review.
1 parent e5dcf97 commit 5d0f545

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

src/atlas/interpolation/method/cubedsphere/CubedSphereBilinear.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
*/
77

88
#include "atlas/interpolation/method/cubedsphere/CubedSphereBilinear.h"
9-
#include <variant>
109
#include "atlas/functionspace/NodeColumns.h"
1110
#include "atlas/grid/CubedSphereGrid.h"
1211
#include "atlas/interpolation/method/MethodFactory.h"
1312
#include "atlas/interpolation/method/cubedsphere/CellFinder.h"
1413
#include "atlas/parallel/omp/omp.h"
1514
#include "atlas/util/CoordinateEnums.h"
16-
#include "eckit/utils/Overloaded.h"
1715

1816
namespace atlas {
1917
namespace interpolation {

src/tests/interpolation/test_interpolation_cubedsphere.cc

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "atlas/functionspace/PointCloud.h"
1414
#include "atlas/grid/Distribution.h"
1515
#include "atlas/grid/Grid.h"
16-
#include "atlas/grid/Iterator.h"
1716
#include "atlas/grid/Partitioner.h"
1817
#include "atlas/interpolation/Interpolation.h"
1918
#include "atlas/mesh/Mesh.h"
@@ -69,28 +68,6 @@ double dotProd(const Field& a, const Field& b) {
6968
return prod;
7069
}
7170

72-
CASE("temporary const lvalue reference test") {
73-
74-
const auto grid = CubedSphereInterpolationFixture{}.sourceGrid_;
75-
76-
auto iterator = grid.lonlat().begin();
77-
const auto begin = iterator;
78-
for (idx_t i = 0; i < grid.size(); ++i) {
79-
80-
// This does not dangle, because C++ makes no sense!
81-
const auto& lonLat = *(begin + i);
82-
const auto refLonLat = *iterator;
83-
++iterator;
84-
85-
EXPECT_APPROX_EQ(lonLat.lon(), refLonLat.lon(), 1e-14);
86-
EXPECT_APPROX_EQ(lonLat.lat(), refLonLat.lat(), 1e-14);
87-
88-
// Only now, *(begin + i), do you have my permission to die.
89-
}
90-
91-
92-
}
93-
9471
CASE("cubedsphere_to_cubedsphere_interpolation") {
9572

9673
// Check that interpolation scheme correctly maps a cubedsphere on to itself.

0 commit comments

Comments
 (0)