| 1 | /*
 | 
|---|
| 2 |  * Project: MoleCuilder
 | 
|---|
| 3 |  * Description: creates and alters molecular systems
 | 
|---|
| 4 |  * Copyright (C)  2012 University of Bonn. All rights reserved.
 | 
|---|
| 5 |  * 
 | 
|---|
| 6 |  *
 | 
|---|
| 7 |  *   This file is part of MoleCuilder.
 | 
|---|
| 8 |  *
 | 
|---|
| 9 |  *    MoleCuilder is free software: you can redistribute it and/or modify
 | 
|---|
| 10 |  *    it under the terms of the GNU General Public License as published by
 | 
|---|
| 11 |  *    the Free Software Foundation, either version 2 of the License, or
 | 
|---|
| 12 |  *    (at your option) any later version.
 | 
|---|
| 13 |  *
 | 
|---|
| 14 |  *    MoleCuilder is distributed in the hope that it will be useful,
 | 
|---|
| 15 |  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 16 |  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 17 |  *    GNU General Public License for more details.
 | 
|---|
| 18 |  *
 | 
|---|
| 19 |  *    You should have received a copy of the GNU General Public License
 | 
|---|
| 20 |  *    along with MoleCuilder.  If not, see <http://www.gnu.org/licenses/>.
 | 
|---|
| 21 |  */
 | 
|---|
| 22 | 
 | 
|---|
| 23 | /*
 | 
|---|
| 24 |  * SamplingGrid.cpp
 | 
|---|
| 25 |  *
 | 
|---|
| 26 |  *  Created on: 25.07.2012
 | 
|---|
| 27 |  *      Author: heber
 | 
|---|
| 28 |  */
 | 
|---|
| 29 | 
 | 
|---|
| 30 | // include config.h
 | 
|---|
| 31 | #ifdef HAVE_CONFIG_H
 | 
|---|
| 32 | #include <config.h>
 | 
|---|
| 33 | #endif
 | 
|---|
| 34 | 
 | 
|---|
| 35 | // include headers that implement a archive in simple text format
 | 
|---|
| 36 | // otherwise BOOST_CLASS_EXPORT_IMPLEMENT has no effect
 | 
|---|
| 37 | #include <boost/archive/text_oarchive.hpp>
 | 
|---|
| 38 | #include <boost/archive/text_iarchive.hpp>
 | 
|---|
| 39 | 
 | 
|---|
| 40 | #include "CodePatterns/MemDebug.hpp"
 | 
|---|
| 41 | 
 | 
|---|
| 42 | #include "Jobs/Grid/SamplingGrid.hpp"
 | 
|---|
| 43 | 
 | 
|---|
| 44 | #include <limits>
 | 
|---|
| 45 | 
 | 
|---|
| 46 | #include "CodePatterns/Assert.hpp"
 | 
|---|
| 47 | #include "CodePatterns/Log.hpp"
 | 
|---|
| 48 | 
 | 
|---|
| 49 | // static instances
 | 
|---|
| 50 | const double SamplingGrid::zeroOffset[3] = { 0., 0., 0. };
 | 
|---|
| 51 | 
 | 
|---|
| 52 | SamplingGrid::SamplingGrid() :
 | 
|---|
| 53 |     SamplingGridProperties()
 | 
|---|
| 54 | {
 | 
|---|
| 55 |   setWindowSize(zeroOffset, zeroOffset);
 | 
|---|
| 56 |   ASSERT( getWindowGridPoints() == (size_t)0,
 | 
|---|
| 57 |       "SamplingGrid::SamplingGrid() - incorrect number of samples given for the window.");
 | 
|---|
| 58 | }
 | 
|---|
| 59 | 
 | 
|---|
| 60 | SamplingGrid::SamplingGrid(const double _begin[3],
 | 
|---|
| 61 |     const double _end[3],
 | 
|---|
| 62 |     const int _level,
 | 
|---|
| 63 |     const sampledvalues_t &_sampled_grid) :
 | 
|---|
| 64 |   SamplingGridProperties(_begin, _end, _level),
 | 
|---|
| 65 |   sampled_grid(_sampled_grid)
 | 
|---|
| 66 | {
 | 
|---|
| 67 |   setWindowSize(_begin, _end);
 | 
|---|
| 68 |   ASSERT( getWindowGridPoints() == (size_t)_sampled_grid.size(),
 | 
|---|
| 69 |       "SamplingGrid::SamplingGrid() - incorrect number of samples given for the window.");
 | 
|---|
| 70 | }
 | 
|---|
| 71 | 
 | 
|---|
| 72 | SamplingGrid::SamplingGrid(const SamplingGrid &_grid) :
 | 
|---|
| 73 |   SamplingGridProperties(_grid),
 | 
|---|
| 74 |   sampled_grid(_grid.sampled_grid)
 | 
|---|
| 75 | {
 | 
|---|
| 76 |   setWindowSize(_grid.begin, _grid.end);
 | 
|---|
| 77 | }
 | 
|---|
| 78 | 
 | 
|---|
| 79 | SamplingGrid::SamplingGrid(const SamplingGridProperties &_props) :
 | 
|---|
| 80 |   SamplingGridProperties(_props)
 | 
|---|
| 81 | {
 | 
|---|
| 82 |   setWindowSize(_props.begin, _props.end);
 | 
|---|
| 83 | }
 | 
|---|
| 84 | 
 | 
|---|
| 85 | SamplingGrid::SamplingGrid(
 | 
|---|
| 86 |     const SamplingGridProperties &_props,
 | 
|---|
| 87 |     const sampledvalues_t &_sampled_grid) :
 | 
|---|
| 88 |   SamplingGridProperties(_props),
 | 
|---|
| 89 |   sampled_grid(_sampled_grid)
 | 
|---|
| 90 | {
 | 
|---|
| 91 |   setWindowSize(_props.begin, _props.end);
 | 
|---|
| 92 |   ASSERT( getWindowGridPoints() == (size_t)_sampled_grid.size(),
 | 
|---|
| 93 |       "SamplingGrid::SamplingGrid() - incorrect number of samples given for the window.");
 | 
|---|
| 94 | }
 | 
|---|
| 95 | 
 | 
|---|
| 96 | SamplingGrid::~SamplingGrid()
 | 
|---|
| 97 | {}
 | 
|---|
| 98 | 
 | 
|---|
| 99 | SamplingGrid& SamplingGrid::operator=(const SamplingGrid& other)
 | 
|---|
| 100 | {
 | 
|---|
| 101 |   // check for self-assignment
 | 
|---|
| 102 |   if (this != &other) {
 | 
|---|
| 103 |     static_cast<SamplingGridProperties &>(*this) = other;
 | 
|---|
| 104 |     setWindowSize(other.begin_window, other.end_window);
 | 
|---|
| 105 |     sampled_grid = other.sampled_grid;
 | 
|---|
| 106 |   }
 | 
|---|
| 107 |   return *this;
 | 
|---|
| 108 | }
 | 
|---|
| 109 | 
 | 
|---|
| 110 | SamplingGrid& SamplingGrid::operator*=(const SamplingGrid& other)
 | 
|---|
| 111 | {
 | 
|---|
| 112 |   // check that grids are compatible
 | 
|---|
| 113 |   if (isCompatible(other)) {
 | 
|---|
| 114 |     sampledvalues_t::iterator iter = sampled_grid.begin();
 | 
|---|
| 115 |     sampledvalues_t::const_iterator otheriter = other.sampled_grid.begin();
 | 
|---|
| 116 |     for(; iter != sampled_grid.end(); ++iter, ++otheriter )
 | 
|---|
| 117 |       *iter *= (*otheriter);
 | 
|---|
| 118 |   } else {
 | 
|---|
| 119 |     ASSERT(0, "SamplingGrid::operator*=() - superposing incompatible grids is so far not in the cards.");
 | 
|---|
| 120 |   }
 | 
|---|
| 121 |   return *this;
 | 
|---|
| 122 | }
 | 
|---|
| 123 | 
 | 
|---|
| 124 | void SamplingGrid::superposeOtherGrids(const SamplingGrid &other, const double prefactor)
 | 
|---|
| 125 | {
 | 
|---|
| 126 |   /// check that grids are compatible
 | 
|---|
| 127 |   if (isCompatible(other)) {
 | 
|---|
| 128 |     /// get maximum of window
 | 
|---|
| 129 |     double max_begin_window[3];
 | 
|---|
| 130 |     double max_end_window[3];
 | 
|---|
| 131 |     bool doExtend = false;
 | 
|---|
| 132 |     for (size_t index=0; index<3;++index) {
 | 
|---|
| 133 |       if (begin_window[index] >= other.begin_window[index]) {
 | 
|---|
| 134 |         max_begin_window[index] = other.begin_window[index];
 | 
|---|
| 135 |         doExtend = true;
 | 
|---|
| 136 |       } else {
 | 
|---|
| 137 |         max_begin_window[index] = begin_window[index];
 | 
|---|
| 138 |       }
 | 
|---|
| 139 |       if (end_window[index] >= other.end_window[index]) {
 | 
|---|
| 140 |         max_end_window[index] = end_window[index];
 | 
|---|
| 141 |       } else {
 | 
|---|
| 142 |         max_end_window[index] = other.end_window[index];
 | 
|---|
| 143 |         doExtend = true;
 | 
|---|
| 144 |       }
 | 
|---|
| 145 |     }
 | 
|---|
| 146 |     LOG(2, "DEBUG: max begin is " << max_begin_window[0] << "," << max_begin_window[1] << "," << max_begin_window[2] << ".");
 | 
|---|
| 147 |     LOG(2, "DEBUG: max end is " << max_end_window[0] << "," << max_end_window[1] << "," << max_end_window[2] << ".");
 | 
|---|
| 148 |     if (doExtend)
 | 
|---|
| 149 |       extendWindow(max_begin_window, max_end_window);
 | 
|---|
| 150 |     /// and copy other into larger window, too
 | 
|---|
| 151 |     addOntoWindow(other.begin_window, other.end_window, other.sampled_grid, prefactor);
 | 
|---|
| 152 |   } else {
 | 
|---|
| 153 |     ASSERT(0, "SamplingGrid::superposeOtherGrids() - superposing incompatible grids is so far not in the cards.");
 | 
|---|
| 154 |   }
 | 
|---|
| 155 | }
 | 
|---|
| 156 | 
 | 
|---|
| 157 | const double SamplingGrid::getVolume() const
 | 
|---|
| 158 | {
 | 
|---|
| 159 |   double volume = 1.;
 | 
|---|
| 160 |   for (size_t i=0;i<3;++i)
 | 
|---|
| 161 |     volume *= end[i]-begin[i];
 | 
|---|
| 162 |   return volume;
 | 
|---|
| 163 | }
 | 
|---|
| 164 | 
 | 
|---|
| 165 | const double SamplingGrid::getWindowVolume() const
 | 
|---|
| 166 | {
 | 
|---|
| 167 |   double volume = 1.;
 | 
|---|
| 168 |   for (size_t i=0;i<3;++i)
 | 
|---|
| 169 |     volume *= end_window[i]-begin_window[i];
 | 
|---|
| 170 |   return volume;
 | 
|---|
| 171 | }
 | 
|---|
| 172 | 
 | 
|---|
| 173 | const size_t SamplingGrid::getTotalGridPoints() const
 | 
|---|
| 174 | {
 | 
|---|
| 175 |   return pow(getGridPointsPerAxis(),3);
 | 
|---|
| 176 | }
 | 
|---|
| 177 | 
 | 
|---|
| 178 | const size_t SamplingGrid::getGridPointsPerAxis() const
 | 
|---|
| 179 | {
 | 
|---|
| 180 |   return pow(2, level);
 | 
|---|
| 181 | }
 | 
|---|
| 182 | 
 | 
|---|
| 183 | const size_t SamplingGrid::getWindowGridPoints() const
 | 
|---|
| 184 | {
 | 
|---|
| 185 |   const double volume = getVolume();
 | 
|---|
| 186 |   if (fabs(volume) < std::numeric_limits<double>::epsilon())
 | 
|---|
| 187 |     return 0;
 | 
|---|
| 188 |   else
 | 
|---|
| 189 |     return (getWindowVolume()*getTotalGridPoints())/volume;
 | 
|---|
| 190 | }
 | 
|---|
| 191 | 
 | 
|---|
| 192 | double SamplingGrid::integral() const
 | 
|---|
| 193 | {
 | 
|---|
| 194 |   const double volume_element = getVolume()/(double)getTotalGridPoints();
 | 
|---|
| 195 |   double int_value = 0.;
 | 
|---|
| 196 |   for (sampledvalues_t::const_iterator iter = sampled_grid.begin();
 | 
|---|
| 197 |       iter != sampled_grid.end();
 | 
|---|
| 198 |       ++iter)
 | 
|---|
| 199 |     int_value += *iter;
 | 
|---|
| 200 |   int_value *= volume_element;
 | 
|---|
| 201 |   LOG(2, "DEBUG: SamplingGrid::integral() is " << scientific << setprecision(13) << int_value << ".");
 | 
|---|
| 202 |   return int_value;
 | 
|---|
| 203 | }
 | 
|---|
| 204 | 
 | 
|---|
| 205 | double SamplingGrid::integral(const SamplingGrid &weight) const
 | 
|---|
| 206 | {
 | 
|---|
| 207 |   if (isCompatible(weight)) {
 | 
|---|
| 208 |     const double volume_element = getVolume()/(double)getTotalGridPoints();
 | 
|---|
| 209 |     double int_value = 0.;
 | 
|---|
| 210 |     sampledvalues_t::const_iterator iter = sampled_grid.begin();
 | 
|---|
| 211 |     sampledvalues_t::const_iterator weightiter = weight.sampled_grid.begin();
 | 
|---|
| 212 |     for (;iter != sampled_grid.end();++iter,++weightiter)
 | 
|---|
| 213 |       int_value += (*weightiter) * (*iter);
 | 
|---|
| 214 |     int_value *= volume_element;
 | 
|---|
| 215 |     //LOG(2, "DEBUG: SamplingGrid::integral() is " << scientific << setprecision(13) << int_value << ".");
 | 
|---|
| 216 |     return int_value;
 | 
|---|
| 217 |   } else
 | 
|---|
| 218 |     return 0.;
 | 
|---|
| 219 | }
 | 
|---|
| 220 | 
 | 
|---|
| 221 | void SamplingGrid::setWindowSize(
 | 
|---|
| 222 |     const double _begin_window[3],
 | 
|---|
| 223 |     const double _end_window[3])
 | 
|---|
| 224 | {
 | 
|---|
| 225 |   for (size_t index=0;index<3;++index) {
 | 
|---|
| 226 |     ASSERT( _begin_window[index] >= begin[index],
 | 
|---|
| 227 |         "SamplingGrid::setWindowSize() - window starts earlier than domain on "
 | 
|---|
| 228 |         +toString(index)+"th component.");
 | 
|---|
| 229 |     begin_window[index] = _begin_window[index];
 | 
|---|
| 230 |     ASSERT( _end_window[index] <= end[index],
 | 
|---|
| 231 |         "SamplingGrid::setWindowSize() - window ends later than domain on "
 | 
|---|
| 232 |         +toString(index)+"th component.");
 | 
|---|
| 233 |     end_window[index] = _end_window[index];
 | 
|---|
| 234 |   }
 | 
|---|
| 235 | }
 | 
|---|
| 236 | 
 | 
|---|
| 237 | void SamplingGrid::setWindow(
 | 
|---|
| 238 |     const double _begin_window[3],
 | 
|---|
| 239 |     const double _end_window[3])
 | 
|---|
| 240 | {
 | 
|---|
| 241 |   setWindowSize(_begin_window, _end_window);
 | 
|---|
| 242 |   const size_t gridpoints_window = getWindowGridPoints();
 | 
|---|
| 243 |   sampled_grid.resize(gridpoints_window, 0.);
 | 
|---|
| 244 | }
 | 
|---|
| 245 | 
 | 
|---|
| 246 | void SamplingGrid::setDomainSize(
 | 
|---|
| 247 |     const double _begin[3],
 | 
|---|
| 248 |     const double _end[3])
 | 
|---|
| 249 | {
 | 
|---|
| 250 |   for (size_t index=0;index<3;++index) {
 | 
|---|
| 251 |     begin[index] = _begin[index];
 | 
|---|
| 252 |     end[index] = _end[index];
 | 
|---|
| 253 |   }
 | 
|---|
| 254 | }
 | 
|---|
| 255 | 
 | 
|---|
| 256 | void SamplingGrid::setDomain(
 | 
|---|
| 257 |     const double _begin[3],
 | 
|---|
| 258 |     const double _end[3])
 | 
|---|
| 259 | {
 | 
|---|
| 260 |   setDomainSize(_begin, _end);
 | 
|---|
| 261 |   setWindowSize(_begin, _end);
 | 
|---|
| 262 |   const size_t gridpoints = getTotalGridPoints();
 | 
|---|
| 263 |   sampled_grid.resize(gridpoints, 0.);
 | 
|---|
| 264 | }
 | 
|---|
| 265 | 
 | 
|---|
| 266 | void SamplingGrid::extendWindow(
 | 
|---|
| 267 |     const double _begin_window[3],
 | 
|---|
| 268 |     const double _end_window[3])
 | 
|---|
| 269 | {
 | 
|---|
| 270 |   // check that we truly have to extend the window
 | 
|---|
| 271 | #ifndef NDEBUG
 | 
|---|
| 272 |   for(size_t index=0;index < 3; ++index) {
 | 
|---|
| 273 |     ASSERT ( begin_window[index] >= _begin_window[index],
 | 
|---|
| 274 |         "SamplingGrid::extendWindow() - component "+toString(index)+
 | 
|---|
| 275 |         " of window start is greater than old value.");
 | 
|---|
| 276 |     ASSERT ( end_window[index] <= _end_window[index],
 | 
|---|
| 277 |         "SamplingGrid::extendWindow() - component "+toString(index)+
 | 
|---|
| 278 |         " of window end is less than old value.");
 | 
|---|
| 279 |   }
 | 
|---|
| 280 | #endif
 | 
|---|
| 281 |   // copy old window size and values
 | 
|---|
| 282 |   double old_begin_window[3];
 | 
|---|
| 283 |   double old_end_window[3];
 | 
|---|
| 284 |   for(size_t index=0;index<3;++index) {
 | 
|---|
| 285 |     old_begin_window[index] = begin_window[index];
 | 
|---|
| 286 |     old_end_window[index] = end_window[index];
 | 
|---|
| 287 |   }
 | 
|---|
| 288 |   sampledvalues_t old_values(sampled_grid);
 | 
|---|
| 289 |   // set new window
 | 
|---|
| 290 |   setWindow(_begin_window,_end_window);
 | 
|---|
| 291 |   // now extend it ...
 | 
|---|
| 292 |   addOntoWindow(old_begin_window, old_end_window, old_values, +1.);
 | 
|---|
| 293 |   LOG(2, "DEBUG: Grid after extension is " << sampled_grid << ".");
 | 
|---|
| 294 | }
 | 
|---|
| 295 | 
 | 
|---|
| 296 | void SamplingGrid::addOntoWindow(
 | 
|---|
| 297 |     const double _begin_window[3],
 | 
|---|
| 298 |     const double _end_window[3],
 | 
|---|
| 299 |     const sampledvalues_t &_sampled_grid,
 | 
|---|
| 300 |     const double prefactor)
 | 
|---|
| 301 | {
 | 
|---|
| 302 | #ifndef NDEBUG
 | 
|---|
| 303 |   for(size_t index=0;index<3;++index) {
 | 
|---|
| 304 |     ASSERT( _begin_window[index] >= begin_window[index],
 | 
|---|
| 305 |         "SamplingGrid::addOntoWindow() - given window starts earlier in component "
 | 
|---|
| 306 |         +toString(index)+".");
 | 
|---|
| 307 |     ASSERT( _end_window[index] <= end_window[index],
 | 
|---|
| 308 |         "SamplingGrid::addOntoWindow() - given window ends later in component "
 | 
|---|
| 309 |         +toString(index)+".");
 | 
|---|
| 310 |   }
 | 
|---|
| 311 | #endif
 | 
|---|
| 312 |   // the only issue are indices
 | 
|---|
| 313 |   const size_t gridpoints_axis = pow(2, level);
 | 
|---|
| 314 |   size_t pre_offset[3];
 | 
|---|
| 315 |   size_t post_offset[3];
 | 
|---|
| 316 |   size_t length[3];
 | 
|---|
| 317 |   size_t total[3];
 | 
|---|
| 318 |   for(size_t index=0;index<3;++index) {
 | 
|---|
| 319 |     pre_offset[index] = (_begin_window[index] - begin_window[index])*gridpoints_axis;
 | 
|---|
| 320 |     post_offset[index] = (end_window[index] - _end_window[index])*gridpoints_axis;
 | 
|---|
| 321 |     length[index] = (_end_window[index] - _begin_window[index])*gridpoints_axis;
 | 
|---|
| 322 |     total[index] = (end_window[index] - begin_window[index])*gridpoints_axis;
 | 
|---|
| 323 |     ASSERT( pre_offset[index]+post_offset[index]+length[index] == total[index],
 | 
|---|
| 324 |         "SamplingGrid::addOntoWindow() - pre, past, and length don't sum up to total for "
 | 
|---|
| 325 |         +toString(index)+"th component.");
 | 
|---|
| 326 |   }
 | 
|---|
| 327 |   ASSERT( length[0]*length[1]*length[2] ==  _sampled_grid.size(),
 | 
|---|
| 328 |       "SamplingGrid::addOntoWindow() - not enough sampled values given.");
 | 
|---|
| 329 |   ASSERT( length[0]*length[1]*length[2] <=  sampled_grid.size(),
 | 
|---|
| 330 |       "SamplingGrid::addOntoWindow() - not enough sampled values available.");
 | 
|---|
| 331 |   size_t N[3];
 | 
|---|
| 332 |   sampledvalues_t::iterator griditer = sampled_grid.begin();
 | 
|---|
| 333 |   std::advance(griditer, pre_offset[0]*total[1]*total[2]);
 | 
|---|
| 334 |   sampledvalues_t::const_iterator copyiter = _sampled_grid.begin();
 | 
|---|
| 335 |   for(N[0]=0; N[0] < length[0]; ++N[0]) {
 | 
|---|
| 336 |     std::advance(griditer, pre_offset[1]*total[2]);
 | 
|---|
| 337 |     for(N[1]=0; N[1] < length[1]; ++N[1]) {
 | 
|---|
| 338 |       std::advance(griditer, pre_offset[2]);
 | 
|---|
| 339 |       for(N[2]=0; N[2] < length[2]; ++N[2]) {
 | 
|---|
| 340 |         *griditer++ += prefactor*(*copyiter++);
 | 
|---|
| 341 |       }
 | 
|---|
| 342 |       std::advance(griditer, post_offset[2]);
 | 
|---|
| 343 |     }
 | 
|---|
| 344 |     std::advance(griditer, post_offset[1]*total[2]);
 | 
|---|
| 345 |   }
 | 
|---|
| 346 |   //std::advance(griditer, post_offset[0]*total[1]*total[2]);
 | 
|---|
| 347 |   LOG(2, "DEBUG: Grid after adding other is " << sampled_grid << ".");
 | 
|---|
| 348 | }
 | 
|---|
| 349 | 
 | 
|---|
| 350 | std::ostream & operator<<(std::ostream &ost, const SamplingGrid& other)
 | 
|---|
| 351 | {
 | 
|---|
| 352 |   ost << "SamplingGrid";
 | 
|---|
| 353 |   ost << " starting at " << other.begin[0] << "," << other.begin[1] << "," << other.begin[2];
 | 
|---|
| 354 |   ost << " ending at " << other.end[0] << "," << other.end[1] << "," << other.end[2];
 | 
|---|
| 355 |   ost << ", window starting at " << other.begin_window[0] << "," << other.begin_window[1] << "," << other.begin_window[2];
 | 
|---|
| 356 |   ost << ", window ending at " << other.end_window[0] << "," << other.end_window[1] << "," << other.end_window[2];
 | 
|---|
| 357 |   ost << ", level of " << other.level;
 | 
|---|
| 358 |   ost << " and integrated value of " << other.integral();
 | 
|---|
| 359 |   return ost;
 | 
|---|
| 360 | }
 | 
|---|
| 361 | 
 | 
|---|
| 362 | template<> SamplingGrid ZeroInstance<SamplingGrid>()
 | 
|---|
| 363 | {
 | 
|---|
| 364 |   SamplingGrid returnvalue;
 | 
|---|
| 365 |   return returnvalue;
 | 
|---|
| 366 | }
 | 
|---|
| 367 | 
 | 
|---|
| 368 | // we need to explicitly instantiate the serialization functions as
 | 
|---|
| 369 | // its is only serialized through its base class FragmentJob
 | 
|---|
| 370 | BOOST_CLASS_EXPORT_IMPLEMENT(SamplingGrid)
 | 
|---|