Changeset 0174593 for src/grid/grid.cpp


Ignore:
Timestamp:
Apr 15, 2013, 1:44:29 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
dc7dc9
Parents:
43f24e5
Message:

Add method Grid::GetSpatialPosGlobal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/grid/grid.cpp

    r43f24e5 r0174593  
    274274}
    275275
     276Vector Grid::GetSpatialPosGlobal(const Index& index_global) const
     277{
     278  return Extent().Begin() + Extent().MeshWidth() * (index_global +  Global().LocalBegin() - Global().GlobalBegin());
     279}
     280
    276281
    277282Index Grid::GetGlobalIndex(const Vector& pos) const
Note: See TracChangeset for help on using the changeset viewer.