Skip to content

Commit

Permalink
Update search_and_matching.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Nov 12, 2024
1 parent 1ad4ae0 commit 85ec846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/markets/search_and_matching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function perform_firms_market!(
DM_d_ig[i] -= S_fg[f]
DM_nominal_ig[i] += S_fg[f] .* P_f[f]
S_fg[f] = 0
deleteat!(sampler, e)
delete!(sampler, e)
isempty(sampler) && break
end
end
Expand Down Expand Up @@ -412,7 +412,7 @@ function perform_firms_market!(
DM_d_ig_[i] -= S_fg_[f]
S_fg[f] -= S_fg_[f]
S_fg_[f] = 0
deleteat!(sampler, e)
delete!(sampler, e)
isempty(sampler) && break
end
end
Expand Down Expand Up @@ -500,7 +500,7 @@ function perform_retail_market!(
C_d_hg[h] -= S_fg[f] * P_f[f]
C_real_hg[h] += S_fg[f]
S_fg[f] = 0
deleteat!(sampler, e)
delete!(sampler, e)
isempty(sampler) && break
end
end
Expand Down Expand Up @@ -534,7 +534,7 @@ function perform_retail_market!(
C_d_hg_[h] -= S_fg_[f] * P_f[f]
S_fg[f] -= S_fg_[f]
S_fg_[f] = 0
deleteat!(sampler, e)
delete!(sampler, e)
isempty(sampler) && break
end
end
Expand Down

0 comments on commit 85ec846

Please sign in to comment.