/[escript]/trunk/ripley/src/blocktools.cpp
ViewVC logotype

Diff of /trunk/ripley/src/blocktools.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4695 by jfenwick, Wed Feb 19 00:03:29 2014 UTC revision 4696 by jfenwick, Wed Feb 19 07:29:50 2014 UTC
# Line 145  size_t Block::getBuffSize(unsigned char Line 145  size_t Block::getBuffSize(unsigned char
145      {      {
146      return 0;        return 0;  
147      }      }
148      return dims[bid][0]*dims[bid][1]*dims[bid][2];        return dims[bid][0]*dims[bid][1]*dims[bid][2]*dpsize;  
149  }  }
150    
151  double* Block::getOutBuffer(unsigned char bid)  double* Block::getOutBuffer(unsigned char bid)
# Line 172  size_t Block::getBuffSize(unsigned char Line 172  size_t Block::getBuffSize(unsigned char
172      {      {
173      return 0;        return 0;  
174      }      }
175      return dims[bid][0]*dims[bid][1]*dims[bid][2];        return dims[bid][0]*dims[bid][1]*dims[bid][2]*dpsize;  
176  }  }
177    
178    
# Line 217  void Block::populateOffsetTable(size_t i Line 217  void Block::populateOffsetTable(size_t i
217      for (int i=0;i<27;++i)      for (int i=0;i<27;++i)
218      {      {
219      flatoffsets[i]=cur;      flatoffsets[i]=cur;
220      cur+=dims[i][0]*dims[i][1]*dims[i][2];      cur+=dims[i][0]*dims[i][1]*dims[i][2]*dpsize;
221      }      }
222      for (int i=0;i<13;++i)      for (int i=0;i<13;++i)
223      {      {

Legend:
Removed from v.4695  
changed lines
  Added in v.4696

  ViewVC Help
Powered by ViewVC 1.1.26