Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mhinsch committed Jul 2, 2024
1 parent bbc29ee commit 7836d17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/simulate/TasksCare.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function distributeCare!(model, pars)
AgentT = eltype(model.pop)
TaskT = eltype(model.pop[1].openTasks)

# agent => tasks
askedTasks = Dict{AgentT, Vector{TaskT}}()

print("tasks:")
Expand All @@ -68,8 +69,9 @@ function distributeCare!(model, pars)
end

nc = length(askedTasks)
# x[2] is the list of tasks
nt = sum(x->length(x[2]), askedTasks)
print("$nc\t")
#print("$nc\t")

# let carers accept tasks
for (carer, tasks) in askedTasks
Expand Down

0 comments on commit 7836d17

Please sign in to comment.