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/SamplingGrid.cpp

    re34888 rc739b3  
    158158{
    159159  // check that grids are compatible
    160   if (isCompatible(other)) {
     160  if (isEquivalent(other)) {
    161161    /// get minimum of window
    162162    double min_begin_window[NDIM];
     
    199199{
    200200  /// check that grids are compatible
    201   if (isCompatible(other)) {
     201  if (isEquivalent(other)) {
    202202    /// get maximum of window
    203203    double max_begin_window[NDIM];
     
    259259double SamplingGrid::integral(const SamplingGrid &weight) const
    260260{
    261   if (isCompatible(weight)) {
     261  if (isEquivalent(weight)) {
    262262    const double volume_element = getVolume()/(double)getTotalGridPoints();
    263263    double int_value = 0.;
Note: See TracChangeset for help on using the changeset viewer.