diff --git a/src/Algorithms/GLGM06/GLGM06.jl b/src/Algorithms/GLGM06/GLGM06.jl index c0b87254b..421c225c5 100644 --- a/src/Algorithms/GLGM06/GLGM06.jl +++ b/src/Algorithms/GLGM06/GLGM06.jl @@ -88,7 +88,7 @@ function GLGM06(; δ::N, DM<:AbstractDisjointnessMethod} # algorithm with "preallocation" is only defined for the non-static case - preallocate = !static + preallocate = preallocate && !static n = ismissing(dim) ? missing : Val(dim) p = ismissing(ngens) ? missing : Val(ngens) return GLGM06(δ, approx_model, max_order, Val(static), n, p,