From 3a2df6ecc1cec9b066f16b6cc4e80ead31cdbd58 Mon Sep 17 00:00:00 2001 From: schillic Date: Sun, 16 Jun 2024 10:37:57 +0200 Subject: [PATCH] use 'preallocate' argument in GLGM06 --- src/Algorithms/GLGM06/GLGM06.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Algorithms/GLGM06/GLGM06.jl b/src/Algorithms/GLGM06/GLGM06.jl index e8539ab238..40ffa5ea8f 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,