Changeset 866ac4 for src/units/particle/comm_mpi_particle.cpp
- Timestamp:
- Apr 9, 2013, 8:44:10 PM (13 years ago)
- Children:
- b3075a
- Parents:
- 1a1be0
- File:
-
- 1 edited
-
src/units/particle/comm_mpi_particle.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/units/particle/comm_mpi_particle.cpp
r1a1be0 r866ac4 87 87 88 88 for (int i=0; i<num_particles_local; ++i) { 89 index = grid.Global().GlobalBegin() + static_cast<Index>(( Vector(&x[3*i]) - grid.Extent().Begin()) / grid.Extent().MeshWidth());89 index = grid.Global().GlobalBegin() + static_cast<Index>(((Vector(&x[3*i]) - grid.Extent().Begin()) / grid.Extent().MeshWidth()).Floor()); 90 90 for (int j=0; j<size; ++j) 91 91 if (index.IsInBounds(begin_remote[j], end_remote[j])) {
Note:
See TracChangeset
for help on using the changeset viewer.
