Skip to content

Commit

Permalink
Update boris.cpp to replace storing perp_dist with minDist
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes2419 authored Feb 15, 2024
1 parent c2159fe commit 2a8c176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/boris.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ void move_boris::operator()(std::size_t indx)
particlesPointer->vx[indx] = v[0];
particlesPointer->vy[indx] = v[1];
particlesPointer->vz[indx] = v[2];
particlesPointer->perpDistanceToSurface[indx] = std::abs(perp_dist);
particlesPointer->perpDistanceToSurface[indx] = minDist;
particlesPointer->time[indx] = particlesPointer->time[indx]+dt;
particlesPointer->dt[indx] = new_dt;
particlesPointer->advance[indx] = new_advance;
Expand All @@ -1110,7 +1110,7 @@ void move_boris::operator()(std::size_t indx)
particlesPointer->vx[indx] = v[0];
particlesPointer->vy[indx] = v[1];
particlesPointer->vz[indx] = v[2];
particlesPointer->perpDistanceToSurface[indx] = std::abs(perp_dist);
particlesPointer->perpDistanceToSurface[indx] = minDist;
particlesPointer->angle[indx] = particlesPointer->angle[indx] + radians_per_dt;
particlesPointer->time[indx] = particlesPointer->time[indx]+dt;
if(particlesPointer->z[indx] > particlesPointer->max_z[indx])
Expand Down

0 comments on commit 2a8c176

Please sign in to comment.