@@ -9,8 +9,8 @@ Main module of ModiaBase.
9
9
module ModiaBase
10
10
11
11
const 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 "
14
14
15
15
# println("\nImporting ModiaBase Version $Version ($Date)")
16
16
@@ -19,21 +19,8 @@ using StaticArrays
19
19
20
20
21
21
# 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)
37
24
38
25
include (" LinearIntegerEquations.jl" )
39
26
0 commit comments