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 c95cf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eckit/geometry/grid/HEALPix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,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 c95cf4e

Please sign in to comment.