We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a883289 commit 2177096Copy full SHA for 2177096
1 file changed
src/mtg/initialisation.jl
@@ -262,6 +262,7 @@ ref_var(v::T) where {T<:AbstractString} = Base.Ref(v) # No copy method for strin
262
ref_var(v::T) where {T<:Base.RefValue} = v
263
ref_var(v::T) where {T<:RefVector} = Base.Ref(v)
264
ref_var(v::T) where {T<:RefVariable} = v
265
+ref_var(v::UninitializedVar) = Base.Ref(copy(v.value))
266
267
"""
268
init_simulation(mtg, mapping; nsteps=1, outputs=nothing, type_promotion=nothing, check=true, verbose=true)
0 commit comments