mirror of
https://igit.ific.uv.es/fernando.p.csic.es/sfcf.jl.git
synced 2025-11-30 09:56:53 +01:00
Working version
This commit is contained in:
parent
d5628eae28
commit
e18ca8155b
7 changed files with 223 additions and 30 deletions
11
src/io.jl
11
src/io.jl
|
|
@ -12,7 +12,6 @@ Stores as global variables 'parsed_args' (info from the command line) and 'param
|
|||
"""
|
||||
function read_input()
|
||||
global parsed_args = parse_commandline()
|
||||
println(log_file,"Reading input file from:", parsed_args["i"], "...")
|
||||
global params = TOML.parsefile(parsed_args["i"])
|
||||
return nothing
|
||||
end
|
||||
|
|
@ -49,7 +48,7 @@ Returns the gauge field and computes the Csw term
|
|||
"""
|
||||
function load_gauge_field()
|
||||
if !parsed_args["cern"]
|
||||
println(log_file,"\nReading gauge field with LGPU native convention from: ", parsed_args["c"], "...\n")
|
||||
println(log_file,"\nReading gauge field with LGPU native convention from: ", parsed_args["c"], "...")
|
||||
U,_ = read_cnfg(parsed_args["c"])
|
||||
else
|
||||
println(log_file,"\nReading gauge field with CERN convention from: ", parsed_args["c"], "...\n")
|
||||
|
|
@ -153,12 +152,14 @@ function write_log()
|
|||
|
||||
print(log_file,"Calling: ")
|
||||
print(log_file,PROGRAM_FILE*" "); for x in ARGS; print(log_file,x*" "); end
|
||||
println(log_file,"")
|
||||
println(log_file,"\n")
|
||||
|
||||
println(log_file,"Version info:")
|
||||
println(log_file,versioninfo())
|
||||
versioninfo(log_file)
|
||||
println(log_file,"")
|
||||
|
||||
println(log_file,"Reading input file from:", parsed_args["i"], "...\n")
|
||||
|
||||
println(log_file,"Parameters:")
|
||||
println(log_file,"Lattice size: ", lp.iL)
|
||||
println(log_file,"Phi0 = ", params["Space"]["phi0"])
|
||||
|
|
@ -170,8 +171,8 @@ function write_log()
|
|||
println(log_file,"ct = ", dpar.ct)
|
||||
println(log_file,"tolerance = ", params["Solver"]["tolerance"])
|
||||
println(log_file,"maxiter = ", params["Solver"]["maxiter"])
|
||||
println(log_file,"")
|
||||
|
||||
flush(log_file)
|
||||
return nothing
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue