Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 98091a23c570
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d8540f26a11c
Choose a head ref
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Jul 4, 2021

  1. floating-point

    eggrobin committed Jul 4, 2021
    Copy the full SHA
    f75081e View commit details
  2. Copy the full SHA
    7f1c1a9 View commit details
  3. Merge pull request #3043 from eggrobin/3041

    Use floating-point numbers, not integers, for a progress indicator in [0, 1]
    eggrobin authored Jul 4, 2021
    Copy the full SHA
    d8540f2 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 ksp_plugin/orbit_analyser.cpp
4 changes: 2 additions & 2 deletions ksp_plugin/orbit_analyser.cpp
Original file line number Diff line number Diff line change
@@ -119,8 +119,8 @@ absl::Status OrbitAnalyser::AnalyseOrbit(Parameters const parameters) {
parameters.extended_mission_duration.value_or(
parameters.mission_duration),
std::max(2 * smallest_osculating_period, parameters.mission_duration));
constexpr int progress_bar_steps = 0x1p10;
for (int n = 0; n <= progress_bar_steps; ++n) {
constexpr double progress_bar_steps = 0x1p10;
for (double n = 0; n <= progress_bar_steps; ++n) {
Instant const t =
parameters.first_time + n / progress_bar_steps * analysis_duration;
if (!ephemeris_->FlowWithFixedStep(t, *instance.value()).ok()) {