Skip to content
Permalink
Browse files

core: Fixed ParticleList::empty

  • Loading branch information
fweik committed Mar 23, 2020
1 parent 31cebcb commit 6c4ff9a6e75cafc226fab052046a1b10d1ab37da
Showing with 3 additions and 7 deletions.
  1. +1 −5 src/core/ParticleList.hpp
  2. +2 −2 src/core/cells.hpp
@@ -98,11 +98,7 @@ struct ParticleList {
* @brief Number of entries.
*/
int size() const { return n; }

/**
* @brief Size larger than zero.
*/
bool empty() const { return size() > 0; }
bool empty() const { return size() <= 0; }

/**
* @brief Add a particle at the end of the list.
@@ -125,8 +125,8 @@ void cells_resort_particles(int global_flag);
*/
void cells_on_geometry_change(int flags);

/** Update ghost information. If @ref resort_particles is not
* @ref Cells::RESORT_NONE, the particles are also resorted.
/** Update ghost information. If needed,
* the particles are also resorted.
*/
void cells_update_ghosts(unsigned data_parts);

0 comments on commit 6c4ff9a

Please sign in to comment.
You can’t perform that action at this time.