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 moved

Legend:

Unmodified
Added
Removed
  • src/grid/grid_properties.hpp

    r66f24d rdfed1c  
    11/**
    2  * @file   grid_indexing.hpp
     2 * @file   grid_properties.hpp
    33 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
    44 * @date   Mon Apr 18 12:54:05 2011
     
    88 */
    99
    10 #ifndef GRID_INDEXING_HPP_
    11 #define GRID_INDEXING_HPP_
     10#ifndef GRID_PROPERTIES_HPP_
     11#define GRID_PROPERTIES_HPP_
    1212
     13#include "base/defs.hpp"
    1314#include "base/index.hpp"
    1415#include "base/vector.hpp"
     
    2021{
    2122public:
    22   const Index& Size() const {return size;}                       ///< Global grid size including boundary
    23   const Index& Begin() const {return begin;}                     ///< Global index of first local grid point
    24   const Index& End() const {return end;}                         ///< Global index of first non-local grid point
    25   const Index& AlignmentBegin() const {return alignmentBegin;} ///< Global index of first point of the next higher level
    26   const Index& AlignmentEnd() const {return alignmentEnd;}
     23  GlobalIndices();
     24
     25  const Index& BeginFinest() const {return begin_finest;}                        ///< Global index of first local grid point
     26  const Index& EndFinest() const {return end_finest;}                            ///< Global index of first non-local grid point
     27  const Index& SizeFinest() const {return size_finest;}                          ///< Global grid size including boundary
     28
     29  const Index& BeginLocal() const {return begin_local;}
     30  const Index& EndLocal() const {return end_local;}
     31  const Index& SizeLocal() const {return size_local;}
     32
     33  const Index& SizeGlobal() const {return size_global;}
     34
    2735  const BT& BoundaryType() const {return boundary;}
    2836
    29   Index& Size() {return size;}                     ///< Global grid size including boundary
    30   Index& Begin() {return begin;}                     ///< Global index of first local grid point
    31   Index& End() {return end;}                         ///< Global index of first non-local grid point
    32   Index& AlignmentBegin() {return alignmentBegin;} ///< Global index of first point of the next higher level
    33   Index& AlignmentEnd() {return alignmentEnd;}
     37  Index& BeginFinest() {return begin_finest;}                ///< Global index of first local grid point
     38  Index& EndFinest() {return end_finest;}                    ///< Global index of first non-local grid point
     39  Index& SizeFinest() {return size_finest;}                     ///< Global grid size including boundary
     40
     41  Index& BeginLocal() {return begin_local;}
     42  Index& EndLocal() {return end_local;}
     43  Index& SizeLocal() {return size_local;}
     44
     45  Index& SizeGlobal() {return size_global;}
     46
    3447  BT& BoundaryType() {return boundary;}
    3548
    3649private:
    37   Index size;
    38   Index begin;
    39   Index end;
    40   Index alignmentBegin, alignmentEnd;
     50  Index begin_finest, end_finest, size_finest;
     51  Index begin_local, end_local, size_local;
     52  Index size_global;
    4153  BT boundary;
    4254};
     
    4557{
    4658public:
     59  LocalIndices();
     60
    4761  const Index& Size() const {return size;}           ///< Local grid size excluding halo
    4862  const Index& SizeTotal() const {return sizeTotal;} ///< Local grid size including halo and boundary
     
    8195  Index& AlignmentEnd() {return alignmentEnd;}
    8296
     97  Index HasHalo1() const;
     98  Index HasHalo2() const;
     99  Index HasBoundary1() const;
     100  Index HasBoundary2() const;
     101
    83102private:
    84103  Index size;
     
    96115{
    97116public:
     117  SpatialExtent();
     118
    98119  const Vector& Size() const {return size;}
    99120  const Index& SizeFactor() const {return size_factor;}
     
    118139}
    119140
    120 #endif /* GRID_INDEXING_HPP_ */
     141#endif /* GRID_PROPERTIES_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.