Skip to content

Commit edefebb

Browse files
committed
renaming actor index in differentialEq
1 parent 2a08d1d commit edefebb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

external/DifferentialEq.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#include "DifferentialEq.hpp"
22

33
SYCL_EXTERNAL void differentialEq(
4-
int currentIndex,
4+
int actorIndex,
55
sycl::accessor<Actor, 1, sycl::access::mode::read_write> actors,
66
sycl::accessor<std::array<vecType, 2>, 1, sycl::access::mode::read> walls,
77
sycl::accessor<Path, 1, sycl::access::mode::read> paths, sycl::stream out) {
8-
Actor *currentActor = &actors[currentIndex];
8+
Actor *currentActor = &actors[actorIndex];
99

1010
vecType pos = currentActor->getPos();
1111

@@ -60,7 +60,7 @@ SYCL_EXTERNAL void differentialEq(
6060
i[1] == neighbour.getBBox()[1];
6161
});
6262

63-
if (currentIndex != x && !neighbour.getAtDestination() && bBoxFlag) {
63+
if (actorIndex != x && !neighbour.getAtDestination() && bBoxFlag) {
6464
vecType currentToNeighbour = pos - neighbour.getPos();
6565
float dij = magnitude(currentToNeighbour);
6666
float rij = neighbour.getRadius() + currentActor->getRadius();

external/DifferentialEq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ constexpr float Ti = 0.5;
2828
constexpr float TIMESTEP = 0.001;
2929

3030
SYCL_EXTERNAL void differentialEq(
31-
int currentIndex,
31+
int actorIndex,
3232
sycl::accessor<Actor, 1, sycl::access::mode::read_write> actors,
3333
sycl::accessor<std::array<vecType, 2>, 1, sycl::access::mode::read> walls,
3434
sycl::accessor<Path, 1, sycl::access::mode::read> paths, sycl::stream out);

0 commit comments

Comments
 (0)