Skip to content

Commit ca18df8

Browse files
committed
TST: change integrator from BDF to LSODA.
1 parent e1bb1f1 commit ca18df8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

rocketpy/motors/SolidMotor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def centerOfMass(self):
343343
t : float
344344
Time in seconds.
345345
346-
Returns
346+
Returnsg
347347
-------
348348
Function
349349
Position of the center of mass as a function
@@ -406,7 +406,7 @@ def terminateBurn(t, y):
406406
events=terminateBurn,
407407
atol=1e-12,
408408
rtol=1e-11,
409-
method="BDF",
409+
method="LSODA",
410410
)
411411

412412
self.grainBurnOut = sol.t[-1]

tests/test_solidmotor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ def test_burn_area_asserts_extreme_values(solid_motor):
105105
)
106106

107107
assert np.allclose(solid_motor.burnArea.getSource()[0][-1], initial_burn_area)
108-
assert np.allclose(solid_motor.burnArea.getSource()[-1][-1], final_burn_area, atol=1e-6)
108+
assert np.allclose(
109+
solid_motor.burnArea.getSource()[-1][-1], final_burn_area, atol=1e-6
110+
)
109111

110112

111113
def test_evaluate_inertia_11_asserts_extreme_values(solid_motor):

0 commit comments

Comments
 (0)