Changeset 4f3474 for src/grid/grid.cpp


Ignore:
Timestamp:
Apr 19, 2013, 8:33:45 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
540c9f8
Parents:
177495
Message:

Fixed Grid::GetSpatialPosGlobal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/grid/grid.cpp

    r177495 r4f3474  
    276276Vector Grid::GetSpatialPosGlobal(const Index& index_global) const
    277277{
    278   return Extent().Begin() + Extent().MeshWidth() * (index_global +  Global().LocalBegin() - Global().GlobalBegin());
     278  return Extent().Begin() + Extent().MeshWidth() * (index_global - Global().GlobalBegin());
    279279}
    280280
Note: See TracChangeset for help on using the changeset viewer.