@@ -9,8 +9,8 @@ Main module of ModiaBase.
99module ModiaBase
1010
1111const path = dirname (dirname (@__FILE__ )) # Absolute path of package directory
12- const Version = " 0.9.1 "
13- const Date = " 2022-02-21 "
12+ const Version = " 0.9.2 "
13+ const Date = " 2022-02-23 "
1414
1515# println("\nImporting ModiaBase Version $Version ($Date)")
1616
@@ -19,21 +19,8 @@ using StaticArrays
1919
2020
2121# append! as needed in EquationAndStateInfo.jl and in ModiaLang/src/CodeGeneration.jl
22- appendVariable! (v1:: Vector{FloatType} , s:: FloatType ) where {FloatType} = push! (v1,s)
23- appendVariable! (v1:: Vector{FloatType} , v2:: Vector{FloatType} ) where {FloatType} = append! (v1,v2)
24- appendVariable! (v1:: Vector{FloatType} , v2:: SVector{N,FloatType} ) where {N,FloatType} = append! (v1,v2)
25- appendVariable! (v1:: Vector{FloatType} , v2:: NTuple{ N,FloatType} ) where {N,FloatType} = append! (v1,v2)
26- @inline function appendVariable! (v1:: Vector{FloatType} , v2:: NTuple{N,SVector{M,FloatType}} ) where {N,M,FloatType}
27- @inbounds for e in v2
28- appendVariable! (v1,e) # dispatch can be performed at compile-time, because typeof(e) = SVector{M,FloatType}
29- end
30- end
31- @inline function appendVariable! (v1:: Vector{FloatType} , v2:: Tuple ) where {FloatType}
32- @inbounds for e in v2
33- appendVariable! (v1,e) # dispatch is performed at run-time, because typeof(e) is not known at compile-time.
34- end
35- end
36-
22+ appendVariable! (v1:: Vector{FloatType} , s:: FloatType ) where {FloatType} = push! (v1,s)
23+ appendVariable! (v1:: Vector{FloatType} , v2) where {FloatType} = append! (v1,v2)
3724
3825include (" LinearIntegerEquations.jl" )
3926
0 commit comments