Changeset afc28a


Ignore:
Timestamp:
Oct 10, 2016, 11:20:06 AM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_ChargeSampling_PBC
Children:
b51223
Parents:
4d08b7
Message:

SamplingGrid now also has flag to state boundary conditions.

  • flag is serialized and we introduced a version (now 1) to SamplingGrid.
Location:
src/Fragmentation/Summation/SetValues
Files:
2 edited

Legend:

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

    r4d08b7 rafc28a  
    6161
    6262SamplingGrid::SamplingGrid() :
    63     SamplingGridProperties()
     63    SamplingGridProperties(),
     64    PeriodicBoundaryConditons(false)
    6465{
    6566  setWindowSize(zeroOffset, zeroOffset);
     
    7172    const double _end[NDIM],
    7273    const int _level) :
    73   SamplingGridProperties(_begin, _end, _level)
     74  SamplingGridProperties(_begin, _end, _level),
     75  PeriodicBoundaryConditons(false)
    7476{
    7577  setWindowSize(zeroOffset, zeroOffset);
     
    8385    const sampledvalues_t &_sampled_grid) :
    8486  SamplingGridProperties(_begin, _end, _level),
    85   sampled_grid(_sampled_grid)
     87  sampled_grid(_sampled_grid),
     88  PeriodicBoundaryConditons(false)
    8689{
    8790  setWindowSize(_begin, _end);
     
    9295SamplingGrid::SamplingGrid(const SamplingGrid &_grid) :
    9396  SamplingGridProperties(_grid),
    94   sampled_grid(_grid.sampled_grid)
     97  sampled_grid(_grid.sampled_grid),
     98  PeriodicBoundaryConditons(false)
    9599{
    96100  setWindowSize(_grid.begin_window, _grid.end_window);
     
    100104
    101105SamplingGrid::SamplingGrid(const SamplingGridProperties &_props) :
    102   SamplingGridProperties(_props)
     106  SamplingGridProperties(_props),
     107  PeriodicBoundaryConditons(false)
    103108{
    104109  setWindowSize(zeroOffset, zeroOffset);
     
    111116    const sampledvalues_t &_sampled_grid) :
    112117  SamplingGridProperties(_props),
    113   sampled_grid(_sampled_grid)
     118  sampled_grid(_sampled_grid),
     119  PeriodicBoundaryConditons(false)
    114120{
    115121  setWindowSize(_props.begin, _props.end);
  • src/Fragmentation/Summation/SetValues/SamplingGrid.hpp

    r4d08b7 rafc28a  
    420420  double end_window[NDIM];
    421421
     422  //!> open (false) or periodic (true) boundary conditions. This information is only required during sampling
     423  bool PeriodicBoundaryConditons;
     424
    422425private:
    423426  friend class MPQCData;
     
    434437      ar & end_window[i];
    435438    }
     439    if (version > 0)
     440      ar & PeriodicBoundaryConditons;
    436441  }
    437442
     
    454459BOOST_CLASS_EXPORT_KEY(SamplingGrid)
    455460
     461// version for serialized information associated to SamplingGrid
     462BOOST_CLASS_VERSION(SamplingGrid, 1)
     463
    456464// define inline functions
    457465#include "SamplingGrid_inline.hpp"
Note: See TracChangeset for help on using the changeset viewer.