create dirname from parsed N and radius
This commit is contained in:
parent
603ff57a45
commit
8e7d273db2
19
Orb_AutF4.jl
19
Orb_AutF4.jl
@ -221,17 +221,16 @@ function init_data(name::String, N::Int; radius=2)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function main()
|
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()
|
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"] != nothing
|
||||||
if parsed_args["cpus"] > cpuinfo_physicalcores()
|
if parsed_args["cpus"] > cpuinfo_physicalcores()
|
||||||
warn("Number of specified cores exceeds the physical core cound. Performance will suffer.")
|
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"])
|
Blas.set_num_threads(parsed_args["cpus"])
|
||||||
end
|
end
|
||||||
|
|
||||||
N = parsed_args["N"]
|
|
||||||
init_data(name, N, radius=2)
|
|
||||||
|
|
||||||
tol = parsed_args["tol"]
|
tol = parsed_args["tol"]
|
||||||
iterations = parsed_args["iterations"]
|
iterations = parsed_args["iterations"]
|
||||||
|
Loading…
Reference in New Issue
Block a user