Ignore:
Timestamp:
Apr 24, 2012, 2:26:14 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
b51c3b
Parents:
e3dbbf
Message:

Fix energy calculation.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/comm/mpi/datatypes_local.hpp

    re3dbbf r716da7  
    2424  DatatypesLocal(const Grid& grid, const MPI_Comm& comm)
    2525  {
    26     InitDatatypesLocal(grid, comm);
     26    InitDatatypesLocal(grid, comm, true);
    2727  }
    2828
    2929  DatatypesLocal(const VMG::Particle::LinkedCellList& grid, const MPI_Comm& comm)
    3030  {
    31     InitDatatypesLocal(grid, comm);
     31    InitDatatypesLocal(grid, comm, false);
    3232  }
    3333
    3434  ~DatatypesLocal() {}
    3535
    36   std::vector<Datatype>& Halo() {return halo;}
    37   std::vector<Datatype>& NB() {return nb;}
     36  std::vector<Datatype>& Halo() {return _halo;}
     37  std::vector<Datatype>& NB() {return _nb;}
    3838
    39   const std::vector<Datatype>& Halo() const {return halo;}
    40   const std::vector<Datatype>& NB() const {return nb;}
     39  const std::vector<Datatype>& Halo() const {return _halo;}
     40  const std::vector<Datatype>& NB() const {return _nb;}
     41
     42  const std::vector<Index>& Offset() const {return _offset;}
    4143
    4244private:
    43   std::vector<Datatype> halo, nb;
     45  template <class T>
     46  void InitDatatypesLocal(const T& grid, const MPI_Comm& comm, const bool& alloc_buffer);
    4447
    45   template <class T>
    46   void InitDatatypesLocal(const T& grid, const MPI_Comm& comm);
     48  std::vector<Datatype> _halo, _nb;
     49  std::vector<Index> _offset;
    4750};
    4851
Note: See TracChangeset for help on using the changeset viewer.