From 87668e00cb8a7b18508b1754e8100a7334899364 Mon Sep 17 00:00:00 2001 From: pabloseleson Date: Tue, 19 Nov 2024 18:21:26 -0500 Subject: [PATCH] Changed order of sliceVelocity and sliceStrainEnergy for consistency with order of arguments in Line 109 --- src/CabanaPD_Particles.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CabanaPD_Particles.hpp b/src/CabanaPD_Particles.hpp index 52cc36ed..318f5611 100644 --- a/src/CabanaPD_Particles.hpp +++ b/src/CabanaPD_Particles.hpp @@ -362,14 +362,6 @@ class Particles } 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" ); @@ -378,6 +370,14 @@ class Particles { 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 {