Skip to content

Commit 863b13d

Browse files
committed
InitFullRestart for 2nd and further segment fixed
1 parent 689cea3 commit 863b13d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CodeGeneration.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,11 @@ function initFullRestart!(m::SimulationModel{FloatType,TimeType})::Nothing where
11811181
# Evaluate instantiate functions
11821182
for fc in m.instantiateFunctions
11831183
logInstantiatedFunctionCalls = false
1184-
Core.eval(m.modelModule, :($(fc[1])($m, $(fc[2]), $(fc[3]), log=$logInstantiatedFunctionCalls)))
1184+
initSegment = fc[1]
1185+
path = fc[3]
1186+
ID = path
1187+
parameters = fc[2]
1188+
Core.eval(m.modelModule, :($initSegment($m, $path, $ID, $parameters, log=$logInstantiatedFunctionCalls)))
11851189
end
11861190
resizeLinearEquations!(m, m.evaluatedParameters, m.options.log)
11871191

0 commit comments

Comments
 (0)