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

    rd24c2f rac6d04  
    154154inline int IsGrid<T>::GlobalLinearIndex(int x, int y, int z) const
    155155{
    156   return z + global.SizeGlobal().Z() * (y + global.SizeGlobal().Y() * x);
     156  return z + global.GlobalSize().Z() * (y + global.GlobalSize().Y() * x);
    157157}
    158158
     
    160160inline int IsGrid<T>::GlobalLinearIndex(const Index& index) const
    161161{
    162   return GlobalLinearIndex(index.X(), index.Y(), index.Z());
     162  return index.Z() + global.GlobalSize().Z() * (index.Y() + global.GlobalSize().Y() * index.X());
    163163}
    164164
Note: See TracChangeset for help on using the changeset viewer.