Changeset 61edd6


Ignore:
Timestamp:
Apr 9, 2013, 2:01:00 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
09e5c8
Parents:
bd61b5c
Message:

Fixed Global bounds error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/units/particle/comm_mpi_particle.cpp

    rbd61b5c r61edd6  
    241241
    242242      for (int j=0; j<3; ++j)
    243         if ((types.Offset()[i][j] < 0 && lc.Global().LocalBegin()[j] == 0) ||
     243        if ((types.Offset()[i][j] < 0 && lc.Global().LocalBegin()[j] == lc.Global().GlobalBegin()[j]) ||
    244244            (types.Offset()[i][j] > 0 && lc.Global().LocalEnd()[j] == lc.Global().GlobalEnd()[j]))
    245245          offset[j] = -1.0 * types.Offset()[i][j] * lc.Extent().Size()[j];
Note: See TracChangeset for help on using the changeset viewer.