Missed a simulation exception on zero mass that should have been an abort event
This commit is contained in:
parent
10909ccf21
commit
f25bfda6f2
@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import net.sf.openrocket.aerodynamics.AerodynamicForces;
|
||||
import net.sf.openrocket.aerodynamics.FlightConditions;
|
||||
import net.sf.openrocket.logging.SimulationAbort;
|
||||
import net.sf.openrocket.logging.WarningSet;
|
||||
import net.sf.openrocket.l10n.Translator;
|
||||
import net.sf.openrocket.masscalc.RigidBody;
|
||||
@ -330,7 +331,7 @@ public class RK4SimulationStepper extends AbstractSimulationStepper {
|
||||
store.rocketMass = structureMassData.add( store.motorMass );
|
||||
|
||||
if (store.rocketMass.getMass() < MathUtil.EPSILON) {
|
||||
throw new SimulationException(trans.get("SimulationStepper.error.totalMassZero"));
|
||||
status.abortSimulation(SimulationAbort.Cause.ACTIVEMASSZERO);
|
||||
}
|
||||
|
||||
// Calculate the forces from the aerodynamic coefficients
|
||||
|
Loading…
x
Reference in New Issue
Block a user