Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 4, 2024
1 parent cab0616 commit 31ea9f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Particles/ParticleBoundaryBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ struct CopyAndTimestamp {
int m_step;
int m_idim;
int m_iside;


template <typename DstData, typename SrcData>
AMREX_GPU_HOST_DEVICE
Expand All @@ -188,10 +188,10 @@ struct CopyAndTimestamp {
}

dst.m_runtime_idata[m_step_index][dst_i] = m_step;
dst.m_runtime_rdata[m_delta_index][dst_i] = 0._rt;
dst.m_runtime_rdata[m_delta_index][dst_i] = 0._rt;

//calculation of the normal to the boundary
std::array<double, 3> n = {0.0, 0.0, 0.0};
std::array<double, 3> n = {0.0, 0.0, 0.0};
n[m_idim]=1-2*m_iside;
dst.m_runtime_rdata[m_normal_index][dst_i]= n[0];
dst.m_runtime_rdata[m_normal_index+1][dst_i]= n[1];
Expand Down Expand Up @@ -401,7 +401,7 @@ void ParticleBoundaryBuffer::gatherParticles (MultiParticleContainer& mypc,
if (np == 0) { continue; }

auto predicate = IsOutsideDomainBoundary{plo, phi, idim, iside};

const auto ptile_data = ptile.getConstParticleTileData();

amrex::ReduceOps<amrex::ReduceOpSum> reduce_op;
Expand Down

0 comments on commit 31ea9f2

Please sign in to comment.