ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CellStructure.hpp File Reference
#include "cell_system/ParticleDecomposition.hpp"
#include "BoxGeometry.hpp"
#include "LocalBox.hpp"
#include "Particle.hpp"
#include "ParticleList.hpp"
#include "ParticleRange.hpp"
#include "algorithm/link_cell.hpp"
#include "bond_error.hpp"
#include "cell_system/Cell.hpp"
#include "cell_system/CellStructureType.hpp"
#include "config/config.hpp"
#include "ghosts.hpp"
#include "system/Leaf.hpp"
#include <utils/math/sqr.hpp>
#include <boost/container/static_vector.hpp>
#include <boost/iterator/indirect_iterator.hpp>
#include <boost/range/algorithm/transform.hpp>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <memory>
#include <set>
#include <stdexcept>
#include <utility>
#include <vector>
+ Include dependency graph for CellStructure.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Distance
 Distance vector and length handed to pair kernels. More...
 
struct  CellStructure
 Describes a cell structure / cell system. More...
 

Namespaces

namespace  Cells
 

Enumerations

enum  Cells::Resort : unsigned { Cells::RESORT_NONE = 0u , Cells::RESORT_LOCAL = 1u , Cells::RESORT_GLOBAL = 2u }
 
enum  Cells::DataPart : unsigned {
  Cells::DATA_PART_NONE = 0u , Cells::DATA_PART_PROPERTIES = 1u , Cells::DATA_PART_POSITION = 2u , Cells::DATA_PART_MOMENTUM = 8u ,
  Cells::DATA_PART_FORCE = 16u , Cells::DATA_PART_RATTLE = 32u , Cells::DATA_PART_BONDS = 64u
}
 Flags to select particle parts for communication. More...
 

Functions

unsigned map_data_parts (unsigned data_parts)
 Map the data parts flags from cells to those used internally by the ghost communication.
 
ParticleRange Cells::particles (Utils::Span< Cell *const > cells)
 

Function Documentation

◆ map_data_parts()

unsigned map_data_parts ( unsigned  data_parts)

Map the data parts flags from cells to those used internally by the ghost communication.

Parameters
data_partsdata parts flags
Returns
ghost communication flags

Definition at line 170 of file CellStructure.cpp.

References GHOSTTRANS_BONDS, GHOSTTRANS_FORCE, GHOSTTRANS_MOMENTUM, GHOSTTRANS_NONE, GHOSTTRANS_POSITION, GHOSTTRANS_PROPRTS, GHOSTTRANS_RATTLE, and u.

Referenced by CellStructure::ghosts_update(), and HybridDecomposition::resort().