Return the number of times that pos_a appears in the array pos
This algorithm scales as O(npart**2) if used in a loop over the particles... To be documented, after it's fixed
FT 13.10.2021
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | npart | |||
double precision, | intent(in), | DIMENSION(3,npart) | :: | pos | ||
double precision, | intent(in), | DIMENSION(3) | :: | pos_a |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private, | DIMENSION(npart) | :: | cnts | |||
integer, | private | :: | itr | ||||
integer, | private | :: | itr2 | ||||
integer, | private | :: | size_x | ||||
integer, | private, | DIMENSION(npart) | :: | x_number | |||
integer, | private, | DIMENSION(:), ALLOCATABLE | :: | x_number_filt | |||
integer, | private, | DIMENSION(npart) | :: | x_sort |