Skip to content

Commit 479d280

Browse files
committed
- updated README.md
1 parent 3f11ece commit 479d280

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ Finally, the neighborhood information can be accessed as follows
4141
PointSet const& ps = nsearch.point_set(point_set_id);
4242
for (int i = 0; i < ps.n_points(); ++i)
4343
{
44-
for (int j = 0; j < ps.n_neighbors(i); ++j)
44+
for (size_t j = 0; j < ps.n_neighbors(neighbor_point_set_id, i); ++j)
4545
{
46-
// Return PointID of the jth neighbor of the ith particle in the 0th point set.
47-
PointID const& pid = ps.neighbor(0, i, j);
46+
// Return the point id of the jth neighbor of the ith particle in the 0th point set.
47+
const unsigned int pid = ps.neighbor(0, i, j);
4848
// ...
4949
// Do whatever you want with the point id. The id contains two indices.
5050
// The first field pid.point_set_id represents the unique point set id returnd by add_point_set.

0 commit comments

Comments
 (0)