Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Feb 18, 2025
1 parent de61363 commit ce5bd25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Src/Particle/AMReX_ParticleCommunication.H
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ struct ParticleCopyPlan
int NStructInt = PC::ParticleContainerType::NStructInt;

int num_real_comm_comp = 0;
int comm_comps_start = 0;
if constexpr (!PC::ParticleType::is_soa_particle) {
comm_comps_start += AMREX_SPACEDIM + NStructReal;
}
int comm_comps_start = 0;
if constexpr (!PC::ParticleType::is_soa_particle) {
comm_comps_start += AMREX_SPACEDIM + NStructReal;
}
for (int i = comm_comps_start; i < real_comp_mask.size(); ++i) {
if (real_comp_mask[i]) {++num_real_comm_comp;}
}
Expand Down
18 changes: 9 additions & 9 deletions Src/Particle/AMReX_ParticleTile.H
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ struct ParticleTileData
dst += sizeof(uint64_t);
}
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
for (int i = 0; i < NAR; ++i)
{
if (comm_real[array_start_index + i])
Expand Down Expand Up @@ -189,9 +189,9 @@ struct ParticleTileData
src += sizeof(uint64_t);
}
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
for (int i = 0; i < NAR; ++i)
{
if (comm_real[array_start_index + i])
Expand Down Expand Up @@ -602,9 +602,9 @@ struct ConstParticleTileData
dst += sizeof(uint64_t);
}
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
for (int i = 0; i < NArrayReal; ++i)
{
if (comm_real[array_start_index + i])
Expand Down

0 comments on commit ce5bd25

Please sign in to comment.