Added max cnfg run adn output tzero

parent bfeeccb5
...@@ -8,13 +8,14 @@ size = [8,8,8,8] ...@@ -8,13 +8,14 @@ size = [8,8,8,8]
blocks = [4,4,4,4] blocks = [4,4,4,4]
[HMC] [HMC]
nth = 100 nth = 10
beta = 6.0 beta = 6.0
c0 = 1.0 c0 = 1.0
cG = 1.0 cG = 1.0
dmeas = 5 dmeas = 5
eps = 0.01 eps = 0.01
ns = 30 ns = 30
mclength = -1 # Number of measurements. Negative to ignore
[Fermion] [Fermion]
kappa = 0.1348 kappa = 0.1348
...@@ -30,10 +31,10 @@ N_noise = 6 ...@@ -30,10 +31,10 @@ N_noise = 6
t_zero = 2.0 t_zero = 2.0
epsilon = 0.01 epsilon = 0.01
nsteps = 100 nsteps = 100
tsource = 8 tsource = 4
[Backflow] [Backflow]
N_noise = 6 N_noise = 6
Flow_times = [2.47,3.86] Flow_times = [2.0,3.0]
Nsaves = 25 Nsaves = 25
tsource = 8 tsource = 4
...@@ -38,6 +38,8 @@ while RUN_ON ...@@ -38,6 +38,8 @@ while RUN_ON
@timeit "Saving" save_data() @timeit "Saving" save_data()
check_run_status()
end end
print_timer(log_file) print_timer(log_file)
......
...@@ -99,6 +99,7 @@ function write_log() ...@@ -99,6 +99,7 @@ function write_log()
println(log_file,"tolerance = ", params["Fermion"]["tolerance"]) println(log_file,"tolerance = ", params["Fermion"]["tolerance"])
println(log_file,"maxiter = ", params["Fermion"]["maxiter"]) println(log_file,"maxiter = ", params["Fermion"]["maxiter"])
println(log_file,"N noise frontflow = ", params["Frontflow"]["N_noise"]) println(log_file,"N noise frontflow = ", params["Frontflow"]["N_noise"])
println(log_file,"t_zero = ", params["Frontflow"]["t_zero"])
println(log_file,"eps frontflw = ", params["Frontflow"]["epsilon"]) println(log_file,"eps frontflw = ", params["Frontflow"]["epsilon"])
println(log_file,"t_source frontflow = ", params["Frontflow"]["tsource"]) println(log_file,"t_source frontflow = ", params["Frontflow"]["tsource"])
println(log_file,"Flow times = ", params["Backflow"]["Flow_times"]) println(log_file,"Flow times = ", params["Backflow"]["Flow_times"])
......
...@@ -25,6 +25,20 @@ function therm_or_readlist() ...@@ -25,6 +25,20 @@ function therm_or_readlist()
return nothing return nothing
end end
function check_run_status()
if parsed_args["c"] == nothing
global RUN_ON = isfile("RUN_ON_"*params["Run"]["name"])
else
global RUN_ON = (isfile("RUN_ON_"*params["Run"]["name"]) && CONFIG_LIST[MCid+1] != "./cnfg/")
end
if MCid == params["HMC"]["mclength"]
global RUN_ON = false
end
return nothing
end
function Gauge_update() function Gauge_update()
if parsed_args["c"] == nothing if parsed_args["c"] == nothing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment