8#ifndef SRC_PARTICLECONTAINER_RESORTCELLPROCESSORSLICED_H_
9#define SRC_PARTICLECONTAINER_RESORTCELLPROCESSORSLICED_H_
11#include "adapter/CellProcessor.h"
12#include "LinkedCells.h"
22 _threadData.resize(mardyn_get_max_threads());
27 ThreadData * myown =
new ThreadData();
28 const int myid = mardyn_get_thread_num();
29 _threadData[myid] = myown;
39 const int myid = mardyn_get_thread_num();
40 delete _threadData[myid];
48 std::vector<Molecule>& b = _threadData[mardyn_get_thread_num()]->_buffer;
50 cell.getLeavingMolecules(b);
53 for (
auto & mol : b) {
67 std::vector<Molecule> _buffer;
70 std::vector<ThreadData * > _threadData;
Definition: CellProcessor.h:29
FullMolecule modeled as LJ sphere with point polarities.
Definition: FullMolecule.h:18
FullParticleCell data structure. Renamed from ParticleCell.
Definition: FullParticleCell.h:49
Linked Cell Data Structure.
Definition: LinkedCells.h:51
bool addParticle(Molecule &particle, bool inBoxCheckedAlready=false, bool checkWhetherDuplicate=false, const bool &rebuildCaches=false) override
add a single Molecule to the ParticleContainer.
Definition: LinkedCells.cpp:445
Definition: ResortCellProcessorSliced.h:17
void postprocessCell(ParticleCell &)
Definition: ResortCellProcessorSliced.h:59
void processCell(ParticleCell &cell)
Definition: ResortCellProcessorSliced.h:46
void endTraversal()
Definition: ResortCellProcessorSliced.h:60
void processCellPair(ParticleCell &, ParticleCell &, bool)
Definition: ResortCellProcessorSliced.h:45
void initTraversal()
Definition: ResortCellProcessorSliced.h:43
void preprocessCell(ParticleCell &)
Definition: ResortCellProcessorSliced.h:44
typedef::xsd::cxx::tree::type container
Alias for the anyType type.
Definition: vtk-punstructured.h:130