Changeset 09e5c8
- Timestamp:
- Apr 9, 2013, 2:01:34 PM (13 years ago)
- Children:
- 1a1be0
- Parents:
- 61edd6
- File:
-
- 1 edited
-
src/units/particle/linked_cell_list.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/units/particle/linked_cell_list.cpp
r61edd6 r09e5c8 115 115 void Particle::LinkedCellList::AddParticle(Particle* p) 116 116 { 117 const Index global_index = (p->Pos() - Extent().Begin()) / Extent().MeshWidth();117 const Index global_index = global.GlobalBegin() + (p->Pos() - Extent().Begin()) / Extent().MeshWidth(); 118 118 const Index local_index = global_index - Global().LocalBegin() + Local().Begin(); 119 119 … … 124 124 void Particle::LinkedCellList::AddParticleToHalo(const vmg_float* x, const vmg_float& q) 125 125 { 126 const Index global_index = ((Vector(x) - Extent().Begin()) / Extent().MeshWidth()).Floor();126 const Index global_index = Global().GlobalBegin() + ((Vector(x) - Extent().Begin()) / Extent().MeshWidth()).Floor(); 127 127 const Index local_index = global_index - Global().LocalBegin() + Local().Begin(); 128 128
Note:
See TracChangeset
for help on using the changeset viewer.
