Skip to content

Commit

Permalink
Merge pull request #151 from pabloseleson/CabanaPD_Particles_small_fix
Browse files Browse the repository at this point in the history
Changed order of sliceVelocity and sliceStrainEnergy in Particles class
  • Loading branch information
streeve authored Nov 21, 2024
2 parents 5e66739 + 87668e0 commit ab7639e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/CabanaPD_Particles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,6 @@ class Particles<MemorySpace, PMB, TemperatureIndependent, Dimension>
}
auto sliceType() { return Cabana::slice<4>( _aosoa_other, "type" ); }
auto sliceType() const { return Cabana::slice<4>( _aosoa_other, "type" ); }
auto sliceStrainEnergy()
{
return Cabana::slice<1>( _aosoa_other, "strain_energy" );
}
auto sliceStrainEnergy() const
{
return Cabana::slice<1>( _aosoa_other, "strain_energy" );
}
auto sliceVelocity()
{
return Cabana::slice<0>( _aosoa_other, "velocities" );
Expand All @@ -378,6 +370,14 @@ class Particles<MemorySpace, PMB, TemperatureIndependent, Dimension>
{
return Cabana::slice<0>( _aosoa_other, "velocities" );
}
auto sliceStrainEnergy()
{
return Cabana::slice<1>( _aosoa_other, "strain_energy" );
}
auto sliceStrainEnergy() const
{
return Cabana::slice<1>( _aosoa_other, "strain_energy" );
}
auto sliceDensity() { return Cabana::slice<2>( _aosoa_other, "density" ); }
auto sliceDensity() const
{
Expand Down

0 comments on commit ab7639e

Please sign in to comment.