Changeset ac6d04 for src/grid/grid.hpp


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/grid/grid.hpp

    rd24c2f rac6d04  
    3737  }
    3838
    39   Grid(const GlobalIndices& global_, const LocalIndices& local_, const SpatialExtent& extent_,
    40        int level_ = 0, Multigrid* father_ = NULL) :
     39  Grid(const GlobalIndices& global_,
     40       const LocalIndices& local_,
     41       const SpatialExtent& extent_,
     42       int level_ = 0,
     43       Multigrid* father_ = NULL) :
    4144    index_translations(this),
    4245    level(level_),
     
    6770  Grid& operator=(const Grid& rhs);
    6871
     72  GlobalIndices& Global() {return global;}
     73  LocalIndices& Local() {return local;}
     74  SpatialExtent& Extent() {return extent;}
     75
    6976  const GlobalIndices& Global() const {return global;}
    7077  const LocalIndices& Local() const {return local;}
    7178  const SpatialExtent& Extent() const {return extent;}
    7279
    73   GlobalIndices& Global() {return global;}
    74   LocalIndices& Local() {return local;}
    75   SpatialExtent& Extent() {return extent;}
    76 
    7780  GridIteratorSuite& Iterators() {return iterators;}
    7881  const GridIteratorSuite& Iterators() const {return iterators;}
    79 
    80   const vmg_float& MeshWidth() const {return Extent().MeshWidth().X();} ///< Mesh width of current level
    8182
    8283  static vmg_float& Correction() {return Grid::correction;}
     
    167168inline int Grid::GlobalLinearIndex(int x, int y, int z) const
    168169{
    169   return z + global.SizeGlobal().Z() * (y + global.SizeGlobal().Y() * x);
     170  return z + global.GlobalSize().Z() * (y + global.GlobalSize().Y() * x);
    170171}
    171172
Note: See TracChangeset for help on using the changeset viewer.