From 5be6c24fe71854e5f814cf6def143bdc40c77d48 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Wed, 24 Nov 2021 10:33:46 +0100 Subject: [PATCH] solve_network: take threads from solver setting --- Snakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snakefile b/Snakefile index e56d86d2..76dca9ab 100644 --- a/Snakefile +++ b/Snakefile @@ -474,7 +474,7 @@ if config["foresight"] == "overnight": solver=RDIR + "/logs/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}_solver.log", python=RDIR + "/logs/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}_python.log", memory=RDIR + "/logs/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}_memory.log" - threads: 4 + threads: config['solving']['solver'].get('threads', 4) resources: mem_mb=config['solving']['mem'] benchmark: RDIR + "/benchmarks/solve_network/elec_s{simpl}_{clusters}_lv{lv}_{opts}_{sector_opts}_{planning_horizons}" script: "scripts/solve_network.py"