forked from ROMEO/nexosim
Return both simulation and scheduler at init
This commit is contained in:
@ -133,12 +133,10 @@ fn main() -> Result<(), SimulationError> {
|
||||
let t0 = MonotonicTime::EPOCH;
|
||||
|
||||
// Assembly and initialization.
|
||||
let mut simu = SimInit::new()
|
||||
let (mut simu, scheduler) = SimInit::new()
|
||||
.add_model(assembly, assembly_mbox, "assembly")
|
||||
.init(t0)?;
|
||||
|
||||
let scheduler = simu.scheduler();
|
||||
|
||||
// ----------
|
||||
// Simulation.
|
||||
// ----------
|
||||
|
Reference in New Issue
Block a user