Ignore:
Timestamp:
Apr 10, 2012, 1:55:49 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
a40eea
Parents:
d24c2f
Message:

Merge recent changes of the vmg library into ScaFaCos.

Includes a fix for the communication problems on Jugene.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1666 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/linked_cell_list.hpp

    rd24c2f rac6d04  
    2424{
    2525
    26 class LinkedCellList : public IsGrid< std::list<Particle> >
     26class LinkedCellList : public IsGrid< std::list<Particle*> >
    2727{
    2828public:
    29   typedef std::list<Particle>::iterator iterator;
    30   typedef std::list<Particle>::const_iterator const_iterator;
    31   typedef std::list<Particle>::reverse_iterator reverse_iterator;
    32   typedef std::list<Particle>::const_reverse_iterator const_reverse_iterator;
     29  typedef std::list<Particle*>::iterator iterator;
     30  typedef std::list<Particle*>::const_iterator const_iterator;
     31  typedef std::list<Particle*>::reverse_iterator reverse_iterator;
     32  typedef std::list<Particle*>::const_reverse_iterator const_reverse_iterator;
    3333
    34   LinkedCellList(const std::list<Particle>& particles,
     34  LinkedCellList(std::list<Particle>& particles,
    3535                 const int& near_field_cells, const Grid& grid);
    3636
    37   void AddParticle(const Particle& particle);
     37  ~LinkedCellList();
    3838
    39   void AddParticleToComplete(const vmg_float* pos, const vmg_float& charge,
    40                              const vmg_float& pot, const vmg_float* force,
    41                              const int& rank, const int& index);
     39  void AddParticle(Particle* particle);
     40  void AddParticleToHalo(const vmg_float* x, const vmg_float& q);
    4241
    43   void AddParticleToComplete(const Vector& pos, const vmg_float& charge,
    44                              const vmg_float& pot, const Vector& force,
    45                              const int& rank, const int& index);
    46 
    47   void AddParticleToComplete(const vmg_float* pos, const vmg_float& charge);
    48 
    49   std::list<Particle>& NotMyParticles() {return not_my_particles;}
    50   const std::list<Particle>& NotMyParticles() const {return not_my_particles;}
     42  void ClearHalo();
    5143
    5244  const Index& NearFieldCells() const {return near_field_cells_;}
    53 
    5445private:
    55   std::list<Particle> not_my_particles;
    5646  Index near_field_cells_;
    5747};
Note: See TracChangeset for help on using the changeset viewer.