Skip to content

Commit

Permalink
fix generated linearfile path
Browse files Browse the repository at this point in the history
  • Loading branch information
arun3688 committed Sep 1, 2023
1 parent de7be4f commit eb424f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modelicaSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ function linearize(omc; lintime = nothing, simflags= nothing, verbose=true)
omc.linearFlag = true
# this function is called from the generated Julia code linearized_model.jl,
# to improve the performance by directly reading the matrices A, B, C and D from the julia code and avoid building the linearized modelica model
include("linearized_model.jl")
include(omc.linearfile)
## to be evaluated at runtime, as Julia expects all functions should be known at the compilation time so efficient assembly code can be generated.
result = Base.invokelatest(linearized_model)
(n, m, p, x0, u0, A, B, C, D, stateVars, inputVars, outputVars) = result
Expand Down

0 comments on commit eb424f5

Please sign in to comment.