Skip to content
Snippets Groups Projects
Commit 8453d12b authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add operator[] for particle_state

parent dea1919e
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,11 @@ class single_particle_state
single_particle_state<particle_type> &operator=(const single_particle_state &src);
single_particle_state<particle_type> &operator=(const double *src);
inline double operator[](const int i)
{
return this->data[i];
}
};
#endif//PARTICLES_BASE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment