Changeset 61a9c2 for src/grid/grid.cpp


Ignore:
Timestamp:
Apr 14, 2013, 11:47:23 AM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
d23483
Parents:
fb228be
Message:

Fixed Grid::GetSpatialPos().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/grid/grid.cpp

    rfb228be r61a9c2  
    271271Vector Grid::GetSpatialPos(const Index& index_local) const
    272272{
    273   if (Global().BoundaryType() == LocallyRefined)
    274     return Extent().Begin() + Extent().MeshWidth() * (index_local + Global().LocalBegin() - Global().GlobalBegin() - 1);
    275   else
    276     return Extent().Begin() + Extent().MeshWidth() * (index_local - Local().HaloSize1() + Global().LocalBegin() - Global().GlobalBegin());
     273  return Extent().Begin() + Extent().MeshWidth() * (index_local - Local().HaloSize1() + Global().LocalBegin() - Global().GlobalBegin());
    277274}
    278275
Note: See TracChangeset for help on using the changeset viewer.