Skip to content

Commit 3210643

Browse files
committed
fixup: runSimulationWithFixedPoints: add assert on envelopes begin speed
They should all have a zero begin speed.
1 parent 590b93a commit 3210643

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/PostProcessingSimulation.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ private fun runSimulationWithFixedPoints(
453453
comfort: Comfort?,
454454
): List<Envelope> {
455455
require(envelopes.size == rollingStocks.size)
456+
require(envelopes.none { it.beginSpeed != 0.0 })
456457
val finalEnvelopes = mutableListOf<Envelope>()
457458
var currentOffset = 0.meters
458459
var currentTime = 0.0

0 commit comments

Comments
 (0)