Skip to content

Comments

fix particle interaction with planktonIndividual#97

Closed
cese427 wants to merge 9 commits intoJuliaOcean:masterfrom
cese427:master
Closed

fix particle interaction with planktonIndividual#97
cese427 wants to merge 9 commits intoJuliaOcean:masterfrom
cese427:master

Conversation

@cese427
Copy link
Contributor

@cese427 cese427 commented Nov 28, 2025

No description provided.

@inbounds KernelAbstractions.@atomic plank.ptc[abiotic.merg[i]] += 1.0f0
##### 3. Consume Particle
##### Handles actual uptake with capacity limit. Unchanged logic.
@kernel function consume_particle_kernel!(intac, plank, plank_p, abiotic, max_candidates)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change function name to merge_particle_kernel!

kernel! = merge_particle_kernel!(device(arch), 256, (size(abiotic.ac,1)))
kernel!(abiotic, plank)

function consume_particle!(intac, plank, plank_p, abiotic, max_candidates, arch::Architecture)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

rand!(rng_type(arch), rnd.x)
reset_interaction!(intac, arch)
calc_interaction!(intac, plank, abiotic, rnd, grid, abio_p, max_candidates, arch)
consume_particle!(intac, plank, plank_p, abiotic, max_candidates, arch)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

@cese427 cese427 closed this Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants