Changeset dfed1c for src/base/defs.hpp


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/base/defs.hpp

    r66f24d rdfed1c  
    3636  Periodic,
    3737  Dirichlet,
    38   Quasiperiodic
     38  Open
     39};
     40
     41class Boundary
     42{
     43public:
     44  Boundary(const BC& boundary_x, const BC& boundary_y, const BC& boundary_z)
     45  {
     46    bc[0] = boundary_x;
     47    bc[1] = boundary_y;
     48    bc[2] = boundary_z;
     49  }
     50
     51  const BC& operator[](const int& index) const {return bc[index];}
     52
     53  const BC& X() const {return bc[0];}
     54  const BC& Y() const {return bc[1];}
     55  const BC& Z() const {return bc[2];}
     56
     57private:
     58  BC bc[3];
    3959};
    4060
Note: See TracChangeset for help on using the changeset viewer.