Ignore:
Timestamp:
Jun 8, 2016, 8:29:24 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
f84241
Parents:
0c9476
git-author:
Frederik Heber <heber@…> (05/27/16 18:34:23)
git-committer:
Frederik Heber <heber@…> (06/08/16 20:29:24)
Message:

Added getDiscreteWindowIndices() and getDiscreteWindowLengthPerAxis() to SamplingGrid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Summation/SetValues/SamplingGrid.hpp

    r0c9476 ra5d4c3  
    200200  const double getWindowLengthPerAxis(const size_t axis) const;
    201201
     202  /** Returns the discrete length in grid cells of the window for the given \a axis.
     203   *
     204   * \param axis axis for which to get step length
     205   * \return window length in grid cells for the given axis
     206   */
     207  const size_t getDiscreteWindowLengthPerAxis(const size_t axis) const;
     208
    202209  /** Returns the volume of the domain covered by the current window.
    203210   *
     
    236243      size_t *length,
    237244      size_t *total) const;
     245
     246  /** Returns begin, length and end of window relative to the full domain in discrete
     247   * grid points, i.e. begin gives the first grid points with the window and end its
     248   * last plus 1.
     249   */
     250  void getDiscreteWindowIndices(
     251      size_t _wbegin[NDIM],
     252      size_t _wlength[NDIM],
     253      size_t _wend[NDIM]) const;
    238254
    239255  /** Equality operator.
Note: See TracChangeset for help on using the changeset viewer.