Skip to content

Commit 552a9ee

Browse files
committed
Prefix timer messages with "ModiaBase" to more clearly see the origin of a message in the timer log.
1 parent d3e0c50 commit 552a9ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/EquationAndStateInfo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,12 @@ function LinearEquationsIteration!(leq::LinearEquations{FloatType}, isInitial::B
453453
else
454454
x .= b
455455
if leq.useRecursiveFactorization
456-
ModiaBase.TimerOutputs.@timeit timer "solve A*x=b (RecursiveFactorization)" begin
456+
ModiaBase.TimerOutputs.@timeit timer "ModiaBase solve A*x=b (RecursiveFactorization)" begin
457457
leq.luA = RecursiveFactorization.lu!(A, leq.pivots)
458458
ldiv!(leq.luA, x)
459459
end
460460
else
461-
ModiaBase.TimerOutputs.@timeit timer "solve A*x=b (LinearAlgebra)" begin
461+
ModiaBase.TimerOutputs.@timeit timer "ModiaBase solve A*x=b (LinearAlgebra)" begin
462462
leq.luA = lu!(A)
463463
ldiv!(leq.luA, x)
464464
end

src/StateSelection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ function addLinearEquations!(eq::EquationGraph, hasConstantCoefficients::Bool, u
969969
while_loop = quote
970970
local $(vAssigned_names...)
971971
_leq_mode = initLinearEquationsIteration!(_m, $leq_index)
972-
ModiaBase.TimerOutputs.@timeit _m.timer "LinearEquationsIteration" while ModiaBase.LinearEquationsIteration!(_leq_mode, _m.isInitial, _m.solve_leq, _m.storeResult, _m.time, _m.timer)
972+
ModiaBase.TimerOutputs.@timeit _m.timer "ModiaBase LinearEquationsIteration" while ModiaBase.LinearEquationsIteration!(_leq_mode, _m.isInitial, _m.solve_leq, _m.storeResult, _m.time, _m.timer)
973973
$(while_body...)
974974
end
975975
_leq_mode = nothing

0 commit comments

Comments
 (0)