From 4d5813862a6fa6d72011b1032c9d9870c0da2cbd Mon Sep 17 00:00:00 2001 From: Oliver Lomax Date: Wed, 6 Mar 2024 22:27:00 +0000 Subject: [PATCH] Removed leftover code missed in PR #175 --- .../method/sphericalvector/SphericalVector.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc b/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc index a8cc3a96f..7e29f41c1 100644 --- a/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc +++ b/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc @@ -72,15 +72,9 @@ void SphericalVector::do_setup(const FunctionSpace& source, // whereas eckit does not. auto complexTriplets = ComplexTriplets(nNonZeros); auto realTriplets = RealTriplets(nNonZeros); - - // Make sure halo lonlats are same as owned points. - auto sourceLonLats = source_.createField(option::name("lonlat") | - option::variables(2)); - auto targetLonLats = target_.createField(option::name("lonlat") | - option::variables(2)); + const auto sourceLonLatsView = array::make_view(source_.lonlat()); const auto targetLonLatsView = array::make_view(target_.lonlat()); - const auto unitSphere = geometry::UnitSphere{}; atlas_omp_parallel_for(auto rowIndex = Index{0}; rowIndex < nRows;