Skip to content

Commit 8842d23

Browse files
committed
make lint and diagnostics run..
1 parent 5a4e46e commit 8842d23

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/shared/modelica/modelicaDiagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ model BouncingBall "The bouncing ball model"
16771677
throw new Error('Rumoca wasm export missing: simulate_model')
16781678
}
16791679
const nativeRaw = JSON.parse(
1680-
String(wasm.simulate_model(source, 'BouncingBall', 2, 0.1, 'auto')),
1680+
String(wasm.simulate_model(source, 'BouncingBall', 2, 0.1, 'auto', '{}')),
16811681
) as Record<string, unknown>
16821682
const nativeRunResult = normalizeRumocaNativeSimulationResult({
16831683
...nativeRaw,

packages/shared/modelica/modelicaWorker.worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ function handleStartSimulation(payload: {
763763
Number(payload.tEnd) || 0,
764764
Number(payload.dt) || 0,
765765
asString(payload.solver) || 'auto',
766+
'{}',
766767
),
767768
)
768769
return JSON.parse(raw) as Record<string, unknown>

packages/shared/modelica/modelica_cli.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ async function simulateModel({ model, sourceFile, useSourceRoots, tEnd, dt, solv
488488
Number.isFinite(tEnd) ? tEnd : 1,
489489
Number.isFinite(dt) ? dt : 0.01,
490490
asString(solver) || 'auto',
491+
'{}',
491492
),
492493
)
493494

packages/shared/modelica/modelica_compare_cli.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ function runNativeRumocaSimulation({ modelName, t0, tf, dt, solverOptions }) {
15331533
Number.isFinite(tf) ? tf : 5,
15341534
Number.isFinite(dt) ? dt : 0.01,
15351535
nativeSolverName(solverOptions),
1536+
'{}',
15361537
)
15371538
return {
15381539
elapsedMs: Date.now() - startedAt,

0 commit comments

Comments
 (0)