Skip to content

Commit e85a16c

Browse files
committed
Statistics improved if linear equation systems are present and/or DAE mode used
1 parent f5200fd commit e85a16c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/Modia.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Modia
1010

1111
const path = dirname(dirname(@__FILE__)) # Absolute path of package directory
1212
const Version = "0.9.4-dev"
13-
const Date = "2022-09-16"
13+
const Date = "2023-02-01"
1414
const modelsPath = joinpath(Modia.path, "models")
1515

1616
print(" \n\nWelcome to ")

src/SimulateAndPlot.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ function simulateSegment!(m::SimulationModel{FloatType,TimeType}, algorithm=miss
492492
leq.odeMode = true
493493
end
494494
end
495+
elseif length(sizesOfLinearEquationSystems) > 0
496+
(leqSizeMax, ileq) = findmax(sizesOfLinearEquationSystems)
497+
println(" No DAE mode for equation system $ileq because size of equation system (= $leqSizeMax) < nlinearMinForDAE (= $(options.nlinearMinForDAE)).")
495498
end
496499
end
497500

src/Statistics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ function printStatistics(statistics::OrderedDict{Symbol,Any}, interval, toleranc
216216
end
217217
println(" linearSystemsSizes = ", str_sizes)
218218
println(" linearSystemsRecFac = ", str_rec, " (= true, if LU with RecursiveFactorization.jl)")
219-
if !odeIntegrator
219+
#if !odeIntegrator
220220
println(" linearSystemsOdeMode = ", str_ode)
221-
end
221+
#end
222222
return nothing
223223
end

0 commit comments

Comments
 (0)