create dirname from parsed N and radius

This commit is contained in:
kalmar 2017-06-06 18:01:59 +02:00
parent 603ff57a45
commit 8e7d273db2

View File

@ -221,17 +221,16 @@ function init_data(name::String, N::Int; radius=2)
end
function main()
name = "SOutF4_E4"
if !isdir(name)
throw("Create dir with all the required orbit data first!")
end
radius = parsed_args["radius"]
logger = PropertyT.setup_logging(name)
parsed_args = parse_commandline()
N = parsed_args["N"]
radius = parsed_args["radius"]
dirname = "SOutF$(N)_E_r=$radius"
isdir(dirname) || mkdir(dirname)
logger = PropertyT.setup_logging(dirname)
if parsed_args["cpus"] != nothing
if parsed_args["cpus"] > cpuinfo_physicalcores()
warn("Number of specified cores exceeds the physical core cound. Performance will suffer.")
@ -239,8 +238,6 @@ function main()
Blas.set_num_threads(parsed_args["cpus"])
end
N = parsed_args["N"]
init_data(name, N, radius=2)
tol = parsed_args["tol"]
iterations = parsed_args["iterations"]