Skip to content

Commit

Permalink
Merge pull request #2 from ECP-copa/fixup_veclen
Browse files Browse the repository at this point in the history
fixup compilation: add missing vector length
  • Loading branch information
steverangel authored May 19, 2022
2 parents daaff7f + be426a9 commit 9b58ea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ParticleActions.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void ParticleActions::setParticles(Particles *P_)

// Stream
void ParticleActions::updatePos(\
Cabana::AoSoA<HACCabana::Particles::data_types, device_type> aosoa_device,\
Cabana::AoSoA<HACCabana::Particles::data_types, device_type, VECTOR_LENGTH> aosoa_device,\
float prefactor)
{
auto position = Cabana::slice<HACCabana::Particles::Fields::Position>(aosoa_device, "position");
Expand All @@ -63,7 +63,7 @@ void ParticleActions::updatePos(\

// Kick
void ParticleActions::updateVel(\
Cabana::AoSoA<HACCabana::Particles::data_types, device_type> aosoa_device,\
Cabana::AoSoA<HACCabana::Particles::data_types, device_type, VECTOR_LENGTH> aosoa_device,\
Cabana::LinkedCellList<device_type> cell_list,\
const float c, const float rmax2, const float rsm2)
{
Expand Down
4 changes: 2 additions & 2 deletions src/ParticleActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ namespace HACCabana
void setParticles(Particles *P_);
void subCycle(TimeStepper &ts, const int nsub, const float gpscal, const float rmax2, const float rsm2,\
const float cm_size, const float min_pos, const float max_pos);
void updatePos(Cabana::AoSoA<HACCabana::Particles::data_types, device_type> aosoa_device,\
void updatePos(Cabana::AoSoA<HACCabana::Particles::data_types, device_type, VECTOR_LENGTH> aosoa_device,\
float prefactor);
void updateVel(Cabana::AoSoA<HACCabana::Particles::data_types, device_type> aosoa_device,\
void updateVel(Cabana::AoSoA<HACCabana::Particles::data_types, device_type, VECTOR_LENGTH> aosoa_device,\
Cabana::LinkedCellList<device_type> cell_list,\
const float c, const float rmax2, const float rsm2);
};
Expand Down

0 comments on commit 9b58ea3

Please sign in to comment.