Skip to content

Commit

Permalink
Modify check_arguments for transfer macros
Browse files Browse the repository at this point in the history
  • Loading branch information
KeitaNakamura committed Aug 3, 2024
1 parent c160020 commit 3729d43
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/transfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,6 @@ function check_arguments_for_P2G(grid, particles, mpvalues, space)
end
end
@assert length(particles) length(mpvalues)
@debug begin
for p in eachparticleindex(particles, mpvalues)
mp = mpvalues[p]
checkbounds(grid, neighboringnodes(mp))
end
end
if space isa BlockSpace
@assert blocksize(grid) == size(space)
sum(length, space) == 0 && error("@P2G: BlockSpace not activated")
Expand Down Expand Up @@ -446,10 +440,4 @@ function check_arguments_for_G2P(grid, particles, mpvalues)
end
end
@assert length(particles) length(mpvalues)
@debug begin
for p in eachparticleindex(particles, mpvalues)
mp = mpvalues[p]
checkbounds(grid, neighboringnodes(mp))
end
end
end

0 comments on commit 3729d43

Please sign in to comment.