From 3842a828a220f028bd894c2ec279bd773207307c Mon Sep 17 00:00:00 2001 From: kalmar Date: Fri, 17 Mar 2017 18:09:23 +0100 Subject: [PATCH] direct errors to separate file? --- SL.jl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SL.jl b/SL.jl index f1a20f0..fa90c29 100644 --- a/SL.jl +++ b/SL.jl @@ -176,6 +176,8 @@ function parse_commandline() end function main() + + parsed_args = parse_commandline() # SL(3,Z) @@ -205,6 +207,20 @@ function main() end name = name*"-$(string(upper_bound))" + # (errorRead, errorWrite) = redirect_stderr() + # atexit(function () + # close(errorWrite) + # + # errors = readavailable(errorRead) + # + # close(errorRead) + # if size(errors) > 0 + # open("$(name)/errors.log", "a") do io + # write(io, errors) + # end + # end + # end) + S() = SL_generatingset(N, p) if parsed_args["cpus"] ≠ nothing