Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use std::tuple_size_v in customorbit.cpp #2195

Merged
merged 1 commit into from
Jun 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading