Commit 680a4870 authored by Jorge Visca's avatar Jorge Visca

support for logless run

parent 11c5cd91
......@@ -86,6 +86,8 @@ M.initialize = function ( c )
mobility.initialize( conf )
people = {}
if not conf.f_log then w_log = function() end end
end
return M
\ No newline at end of file
......@@ -52,6 +52,9 @@ M.initialize = function ( c )
conf = assert(c)
lib = conf.lib
if not conf.f_eir then w_slir = function() end end
if not conf.f_log then w_log = function() end end
M.cases = queue:new()
for i = 1, c.contacttracers or 0 do
M.create_tracer(0, i)
......
......@@ -88,6 +88,9 @@ M.initialize = function ( c )
model = c.disease
lib = conf.lib
M.Ecount, M.Icount, M.Rcount, M.Qcount = 0, 0, 0, 0
if not conf.f_eir then w_eir = function() end end
if not conf.f_log then w_log = function() end end
w_eir('t E I Q R')
end
......
......@@ -136,6 +136,9 @@ M.initialize = function ( c )
model = c.disease
lib = conf.lib
M.Lcount, M.Pcount, M.Icount, M.Rcount, M.Qcount = 0, 0, 0, 0, 0
if not conf.f_eir then w_slir = function() end end
if not conf.f_log then w_log = function() end end
w_slir('t L P I Q R')
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