Skip to content

Commit

Permalink
Use std::tuple_size_v in customorbit.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick committed Jun 2, 2024
1 parent 1b33de3 commit 2961b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/celephem/customorbit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2568,12 +2568,12 @@ class UranianSatelliteOrbit : public CachingOrbit
double t = jd - 2444239.5;

double L = L0 + L1 * t;
for (std::size_t i = 0; i < std::tuple_size<LTerms>::value; ++i)
for (std::size_t i = 0; i < std::tuple_size_v<LTerms>; ++i)
L += L_k[i] * std::sin(L_theta[i] * t + L_phi[i]);

double a0 = 0.0;
double a1 = 0.0;
for (std::size_t i = 0; i < std::tuple_size<ZTerms>::value; ++i)
for (std::size_t i = 0; i < std::tuple_size_v<ZTerms>; ++i)
{
double w = z_theta[i] * t + z_phi[i];
double sw;
Expand All @@ -2585,7 +2585,7 @@ class UranianSatelliteOrbit : public CachingOrbit

double b0 = 0.0;
double b1 = 0.0;
for (std::size_t i = 0; i < std::tuple_size<ZetaTerms>::value; ++i)
for (std::size_t i = 0; i < std::tuple_size_v<ZetaTerms>; ++i)
{
double w = zeta_theta[i] * t + zeta_phi[i];
double sw;
Expand Down

0 comments on commit 2961b53

Please sign in to comment.