Changeset f57182 for src/grid/grid.hpp


Ignore:
Timestamp:
Mar 30, 2013, 2:44:52 PM (13 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
8180d8
Parents:
d13e27
git-author:
Julian Iseringhausen <isering@…> (06/11/12 14:02:16)
git-committer:
Julian Iseringhausen <isering@…> (03/30/13 14:44:52)
Message:

Open boundary conditions.

Conflicts:

lib/vmg/src/Makefile.am
lib/vmg/src/base/factory.cpp
lib/vmg/test/unit_test/library/dirichlet_fas_lr_mpi.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/grid/grid.hpp

    rd13e27 rf57182  
    107107  vmg_float& operator()(const Index& index);
    108108
     109  const vmg_float& operator()(int x, int y, int z) const;  ///< Returns a reference to the requested gridpoint.
     110  const vmg_float& operator()(const Index& index) const;
     111
    109112  const vmg_float& GetVal(int x, int y, int z) const; ///< Returns the value of a requested gridpoint.
    110113  const vmg_float& GetVal(const Index& index) const;
     
    138141  bool IsActive() const {return Local().Size().Product() > 0;}
    139142
     143  Vector GetSpatialPos(const Index& index_local) const;
     144  Index GetGlobalIndex(const Vector& pos) const;
     145
    140146private:
    141147  void InitGrid();
     
    167173}
    168174
     175inline const vmg_float& Grid::operator()(int x, int y, int z) const
     176{
     177  return grid[z + local.SizeTotal().Z() * (y + local.SizeTotal().Y() * x)];
     178}
     179
     180inline const vmg_float& Grid::operator()(const Index& index) const
     181{
     182  return this->operator()(index.X(), index.Y(), index.Z());
     183}
     184
    169185inline const vmg_float& Grid::GetVal(int x, int y, int z) const
    170186{
Note: See TracChangeset for help on using the changeset viewer.