Ignore:
Timestamp:
Jun 8, 2016, 10:45:27 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
6369bc
Parents:
e34888
git-author:
Frederik Heber <heber@…> (06/06/16 14:28:05)
git-committer:
Frederik Heber <heber@…> (06/08/16 22:45:27)
Message:

Extended SamplingGridProperties::isCompatible() to allow more finely resolved grids, added ::isEquivalent().

  • isEquivalent contains the old check and we replaced isCompatible() by it.
File:
1 edited

Legend:

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

    re34888 rc739b3  
    5656   * \return true - are compatible, false - else
    5757   */
    58   bool isCompatible(const SamplingGridProperties &_props) const
     58  bool isCompatible(const SamplingGridProperties &_props) const;
     59
     60  /** Checks whether another instance is equivalent with this one, i.e. they have
     61   * the same grid.
     62   *
     63   * \param _props other properties to check against
     64   * \return true - are compatible, false - else
     65   */
     66  bool isEquivalent(const SamplingGridProperties &_props) const
    5967  {
    60     return level == _props.level;
     68    return (*this) == _props;
    6169  }
    6270
     
    140148   *
    141149   * \param _props other grid to compare extension to
    142    * \return surplus levels
     150   * \return surplus levels, may be fractional
    143151   */
    144   int getSurplusLevel(const SamplingGridProperties &_props) const;
     152  double getSurplusLevel(const SamplingGridProperties &_props) const;
    145153
    146154public:
Note: See TracChangeset for help on using the changeset viewer.