Ignore:
Timestamp:
Jun 8, 2016, 6:12:12 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
e480fc
Parents:
c9b843
git-author:
Frederik Heber <heber@…> (05/26/16 09:51:07)
git-committer:
Frederik Heber <heber@…> (06/08/16 18:12:12)
Message:

FIX: Replaced 3 by NDIM in SamplingGrid which avoids some confusion with numeric grid levels.

File:
1 edited

Legend:

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

    rc9b843 rc805f7  
    4444
    4545SamplingGridProperties::SamplingGridProperties(
    46     const double _begin[3],
    47     const double _end[3],
     46    const double _begin[NDIM],
     47    const double _end[NDIM],
    4848    const int _level) :
    4949  level(_level)
    5050{
    51   for(size_t i=0; i<3; ++i) {
     51  for(size_t i=0; i<NDIM; ++i) {
    5252    begin[i] = _begin[i];
    5353    end[i] = _end[i];
     
    5858  level(_props.level)
    5959{
    60   for(size_t i=0; i<3; ++i) {
     60  for(size_t i=0; i<NDIM; ++i) {
    6161    begin[i] = _props.begin[i];
    6262    end[i] = _props.end[i];
     
    6767  level(0)
    6868{
    69   for(size_t i=0; i<3; ++i) {
     69  for(size_t i=0; i<NDIM; ++i) {
    7070    begin[i] = 0.;
    7171    end[i] = 0.;
     
    8080  // check for self-assignment
    8181  if (this != &other) {
    82     for(size_t index=0; index<3; ++index) {
     82    for(size_t index=0; index<NDIM; ++index) {
    8383      begin[index] = other.begin[index];
    8484      end[index] = other.end[index];
     
    9292{
    9393  bool status = true;
    94   for (size_t i=0; i<3; ++i) {
     94  for (size_t i=0; i<NDIM; ++i) {
    9595    status &= begin[i] == _props.begin[i];
    9696    status &= end[i] == _props.end[i];
Note: See TracChangeset for help on using the changeset viewer.