Skip to content

Commit

Permalink
fixup compilation: add missing vector length
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed May 18, 2022
1 parent daaff7f commit be426a9
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 be426a9

Please sign in to comment.