From fc84278fa507a7b973ee790b720bf73b36f47a8c Mon Sep 17 00:00:00 2001 From: kalmarek Date: Wed, 22 Jan 2020 23:11:49 +0100 Subject: [PATCH] fix: copy warmstart.jld to directory --- runcomputations.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runcomputations.jl b/runcomputations.jl index 1c64e2e..1051849 100644 --- a/runcomputations.jl +++ b/runcomputations.jl @@ -56,8 +56,8 @@ let GROUP = ARGS[1] if certified_λ < 0.0 && λ > 0.01 # there is still a chance to detect spectral gap new_λ = round(0.8λ, sigdigits=2) new_dir = joinpath(group_name, "$new_λ") - mkpath(new_dir) - cp(joinpath(group_name, "Inf", "warmstart.jld"), new_dir, force=true) + isdir(new_dir) || mkpath(new_dir) + cp(joinpath(group_name, "Inf", "warmstart.jld"), joinpath(new_dir, "warmstart.jld"), force=true) check_propertyT(groups[GROUP], group_name, HALFRADIUS, new_λ, AutomaticStructure, with_SCS(500_000, 0))