Ignore:
Timestamp:
Apr 24, 2012, 2:26:14 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
b51c3b
Parents:
e3dbbf
Message:

Fix energy calculation.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1729 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/linked_cell_list.cpp

    re3dbbf r716da7  
    3333  local.BoundarySize2() = 0;
    3434
    35   local.FinerBeginFoo() = 0;
    36   local.FinerEndFoo() = 0;
    37   local.FinerSizeFoo() = 0;
     35  local.FinerBegin() = 0;
     36  local.FinerEnd() = 0;
     37  local.FinerSize() = 0;
    3838
    3939  for (int i=0; i<3; ++i) {
     
    8585void Particle::LinkedCellList::AddParticleToHalo(const vmg_float* x, const vmg_float& q)
    8686{
    87   const Index global_index = (Vector(x) - Extent().Begin()) / Extent().MeshWidth();
     87  const Index global_index = ((Vector(x) - Extent().Begin()) / Extent().MeshWidth()).Floor();
    8888  const Index local_index = global_index - Global().LocalBegin() + Local().Begin();
    8989
Note: See TracChangeset for help on using the changeset viewer.