Skip to content

Commit

Permalink
InitFullRestart for 2nd and further segment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinOtter committed May 29, 2023
1 parent 689cea3 commit 863b13d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CodeGeneration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,11 @@ function initFullRestart!(m::SimulationModel{FloatType,TimeType})::Nothing where
# Evaluate instantiate functions
for fc in m.instantiateFunctions
logInstantiatedFunctionCalls = false
Core.eval(m.modelModule, :($(fc[1])($m, $(fc[2]), $(fc[3]), log=$logInstantiatedFunctionCalls)))
initSegment = fc[1]
path = fc[3]
ID = path
parameters = fc[2]
Core.eval(m.modelModule, :($initSegment($m, $path, $ID, $parameters, log=$logInstantiatedFunctionCalls)))
end
resizeLinearEquations!(m, m.evaluatedParameters, m.options.log)

Expand Down

0 comments on commit 863b13d

Please sign in to comment.