Skip to content

Commit

Permalink
eckit::geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaciel committed Aug 7, 2023
1 parent eee1161 commit 9436876
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/eckit/geometry/grid/HEALPix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ const std::vector<double>& HEALPix::latitudes() const {
*j = -*i;
}
*i = 0.;

return lats_;
}

ASSERT(lats_.size() == Ni);
Expand All @@ -103,7 +101,7 @@ const std::vector<double>& HEALPix::latitudes() const {
const std::vector<double>& HEALPix::longitudes(size_t i) const {
const auto Nj = nj(i);
const auto step = 360. / static_cast<double>(Nj);
const auto start = static_cast<bool>(i % 2) || i == 0 || i == ni() - 1 ? step / 2. : 0.;
const auto start = i < N_ || 3 * N_ - 1 < i || static_cast<bool>((i + N_) % 2) ? step / 2. : 0.;

lons_.reserve(N_ * 4);
lons_.resize(Nj);
Expand Down

0 comments on commit 9436876

Please sign in to comment.