Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Jul 20, 2024
1 parent 80cfe1f commit 216744c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/math_physics/numerical_integration/test_runge_kutta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ TEST(NUMERICAL_INTEGRATION, Integrate2dTwoBodyOrbitSmallEccentricity) {
initial_position[1] = initial_state[1];
initial_velocity[0] = initial_state[2];
initial_velocity[1] = initial_state[3];
OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
KeplerOrbit kepler(1.0, oe);
orbit::OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
orbit::KeplerOrbit kepler(1.0, oe);
kepler.CalcOrbit((double)(step_num * step_width_s) / (24.0 * 60.0 * 60.0));

double error_tolerance = 2e-4;
Expand Down Expand Up @@ -486,8 +486,8 @@ TEST(NUMERICAL_INTEGRATION, Integrate2dTwoBodyOrbitLargeEccentricity) {
initial_position[1] = initial_state[1];
initial_velocity[0] = initial_state[2];
initial_velocity[1] = initial_state[3];
OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
KeplerOrbit kepler(1.0, oe);
orbit::OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
orbit::KeplerOrbit kepler(1.0, oe);
kepler.CalcOrbit((double)(step_num * step_width_s) / (24.0 * 60.0 * 60.0));

double error_tolerance = 2e-1;
Expand Down Expand Up @@ -551,8 +551,8 @@ TEST(NUMERICAL_INTEGRATION, Interpolation2dTwoBodyOrbitSmallEccentricity) {
initial_position[1] = initial_state[1];
initial_velocity[0] = initial_state[2];
initial_velocity[1] = initial_state[3];
OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
KeplerOrbit kepler(1.0, oe);
orbit::OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
orbit::KeplerOrbit kepler(1.0, oe);
kepler.CalcOrbit((double)(step_num * step_width_s) / (24.0 * 60.0 * 60.0));

double error_tolerance = 5e-2;
Expand Down Expand Up @@ -646,8 +646,8 @@ TEST(NUMERICAL_INTEGRATION, Interpolation2dTwoBodyOrbitLargeEccentricity) {
initial_position[1] = initial_state[1];
initial_velocity[0] = initial_state[2];
initial_velocity[1] = initial_state[3];
OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
KeplerOrbit kepler(1.0, oe);
orbit::OrbitalElements oe(1.0, 0.0, initial_position, initial_velocity);
orbit::KeplerOrbit kepler(1.0, oe);
kepler.CalcOrbit((double)(step_num * step_width_s) / (24.0 * 60.0 * 60.0));

double error_tolerance = 1e-5;
Expand Down

0 comments on commit 216744c

Please sign in to comment.