From 2ba051eae8d093596b837ec389e4ddd24e65e3f5 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Tue, 26 Dec 2023 21:36:08 +0100 Subject: [PATCH] !!: actually fix it --- solve.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/solve.jl b/solve.jl index 47b7a6d..d82eb6f 100644 --- a/solve.jl +++ b/solve.jl @@ -2,7 +2,8 @@ using LinearAlgebra using TypedPolynomials using Distributed, SlurmClusterManager -addprocs(SlurmManager()) +slurm_manager = SlurmManager() +addprocs(slurm_manager) # Local deps include("random-poly.jl") @@ -99,7 +100,8 @@ vars = variables(R) println("Solutions: ", sol) println("Norms (lower = better): ", [norm([f(vars => s) for f in R]) for s in sol]) -finalize(SlurmManager()) +# See https://github.com/kleinhenz/SlurmClusterManager.jl/issues/11 +finalize(slurm_manager) # Plotting the system and the real solutions # ENV["GKSwstype"] = "nul"