/[escript]/branches/diaplayground/ripley/src/Brick.cpp
ViewVC logotype

Diff of /branches/diaplayground/ripley/src/Brick.cpp

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

revision 3800 by caltinay, Fri Feb 3 01:18:06 2012 UTC revision 3806 by caltinay, Mon Feb 6 02:32:48 2012 UTC
# Line 528  void Brick::setToSize(escript::Data& out Line 528  void Brick::setToSize(escript::Data& out
528          const double xSize=getFirstCoordAndSpacing(0).second;          const double xSize=getFirstCoordAndSpacing(0).second;
529          const double ySize=getFirstCoordAndSpacing(1).second;          const double ySize=getFirstCoordAndSpacing(1).second;
530          const double zSize=getFirstCoordAndSpacing(2).second;          const double zSize=getFirstCoordAndSpacing(2).second;
531          const double size=min(min(xSize,ySize),zSize);          const double size=sqrt(xSize*xSize+ySize*ySize+zSize*zSize);
532  #pragma omp parallel for  #pragma omp parallel for
533          for (index_t k = 0; k < getNumElements(); ++k) {          for (index_t k = 0; k < getNumElements(); ++k) {
534              double* o = out.getSampleDataRW(k);              double* o = out.getSampleDataRW(k);

Legend:
Removed from v.3800  
changed lines
  Added in v.3806

  ViewVC Help
Powered by ViewVC 1.1.26