Ignore:
Timestamp:
Nov 22, 2011, 9:22:10 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
facba0
Parents:
66f24d
Message:

Major vmg update.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/interface/interface.hpp

    r66f24d rdfed1c  
    1414
    1515#include "base/object.hpp"
    16 #include "grid/grid_indexing.hpp"
     16#include "grid/grid_properties.hpp"
    1717
    1818namespace VMG
     
    2525{
    2626public:
    27   Interface(BC boundary, int levelMin, int levelMax, vmg_float box_begin, vmg_float box_end,
    28             int coarseningSteps=0, vmg_float alpha=1.6);
     27  Interface(const Boundary& boundary, const int& levelMin, const int& levelMax,
     28            const Vector& box_offset, const vmg_float box_size,
     29            int coarseningSteps=0, vmg_float alpha=1.6) :
     30    bc(boundary),
     31    levelMin(levelMin),
     32    levelMax(levelMax)
     33  {
     34    InitInterface(box_offset, box_size, coarseningSteps, alpha);
     35  }
    2936
    3037  virtual ~Interface() {}
     
    3542  const std::vector<GlobalIndices>& Global() const {return global;}
    3643  const std::vector<SpatialExtent>& Extent() const {return extent;}
    37   const BC& BoundaryConditions() const {return bc;}
     44
     45  const GlobalIndices& Global(const int& level) const
     46  {
     47    return global[levelMax - level];
     48  }
     49
     50  const SpatialExtent& Extent(const int& level) const
     51  {
     52    return extent[levelMax - level];
     53  }
     54
     55  const Boundary& BoundaryConditions() const {return bc;}
    3856
    3957  const int& MinLevel() const {return levelMin;}
     
    4159
    4260private:
     61  void InitInterface(const Vector& box_offset, const vmg_float& box_end,
     62                     const int& coarseningSteps, const vmg_float& alpha);
     63
    4364  std::vector<GlobalIndices> global;
    4465  std::vector<SpatialExtent> extent;
    4566
    46   BC bc;
     67  Boundary bc;
    4768
    4869  int levelMin, levelMax;
Note: See TracChangeset for help on using the changeset viewer.