Commit 041abadc authored by Alberto Ramos's avatar Alberto Ramos

Added flushing of file

parent a08d5e19
......@@ -10,3 +10,4 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
......@@ -10,7 +10,7 @@
###
using LatticeGPU, TOML, BDIO, ArgParse, Random, CUDA, Pkg, InteractiveUtils, TimerOutputs, Printf, CodecZlib
using LatticeGPU, TOML, BDIO, ArgParse, Random, CUDA, Pkg, InteractiveUtils, TimerOutputs, Printf, TranscodingStreams, CodecZlib
function parse_commandline()
s = ArgParseSettings()
......@@ -162,6 +162,7 @@ for i in 1:nthm
sfc[i,1], sfc[i,2])
end
if i%10 == 0
write(flog, TranscodingStreams.TOKEN_END)
flush(flog)
end
end
......@@ -209,6 +210,7 @@ for i in 1:nt
U .= ymws.U1
if i%10 == 0
write(flog, TranscodingStreams.TOKEN_END)
flush(flog)
end
end
......
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