From 24b664b1740b00c4f83073ebf2a2a8f3006da6d6 Mon Sep 17 00:00:00 2001 From: Oliver Lomax Date: Wed, 6 Mar 2024 21:48:51 +0000 Subject: [PATCH] Update SphericalVector.cc Removed dead code missed in last PR. --- .../method/sphericalvector/SphericalVector.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc b/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc index a8cc3a96f..497902f9a 100644 --- a/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc +++ b/src/atlas/interpolation/method/sphericalvector/SphericalVector.cc @@ -72,12 +72,7 @@ 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());