From 5743b10ab6a89cdfd4e0636340b69ae5dc3e97ed Mon Sep 17 00:00:00 2001 From: jjospina Date: Thu, 1 Aug 2024 12:55:02 -0600 Subject: [PATCH] FIX: subproblem results in parallel version exported as json files isntead of text file. --- src/core/multiprocessing.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/multiprocessing.jl b/src/core/multiprocessing.jl index 4cebe98..baca901 100644 --- a/src/core/multiprocessing.jl +++ b/src/core/multiprocessing.jl @@ -75,7 +75,7 @@ function optimize_subproblem_multiprocessing( # TODO: Find a way to transform distribution systems solution from MATH to ENG and PU to SI before output. result_json = JSON.json(result) - open("subproblem_$(i)-ckt_$(data["ckt_name"])-boundary_$(boundary_number).txt", "w") do file + open("subproblem_$(i)-ckt_$(data["ckt_name"])-boundary_$(boundary_number).json", "w") do file write(file, result_json) end