Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Dec 18, 2024
1 parent f12d251 commit 2087ee9
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/interface/swarm_comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,16 @@ void Swarm::LoadBuffers_() {
const int m = buffer_sorted(n).sort_idx_;
if (m >= 0) {
const int bufid = neighbor_buffer_index(m);
if (m >= 0) {
const int bid = n - buffer_start[m];
int buffer_index = bid * particle_size;
swarm_d.MarkParticleForRemoval(p_index);
for (int i = 0; i < realPackDim; i++) {
bdvar.send[bufid](buffer_index) = vreal(i, p_index);
buffer_index++;
}
for (int i = 0; i < intPackDim; i++) {
bdvar.send[bufid](buffer_index) = static_cast<Real>(vint(i, p_index));
buffer_index++;
}
const int bid = n - buffer_start[m];
int buffer_index = bid * particle_size;
swarm_d.MarkParticleForRemoval(p_index);
for (int i = 0; i < realPackDim; i++) {
bdvar.send[bufid](buffer_index) = vreal(i, p_index);
buffer_index++;
}
for (int i = 0; i < intPackDim; i++) {
bdvar.send[bufid](buffer_index) = static_cast<Real>(vint(i, p_index));
buffer_index++;
}
}
}
Expand Down

0 comments on commit 2087ee9

Please sign in to comment.