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

Diff of /trunk/ripley/src/Rectangle.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 434  void Rectangle::setToSize(escript::Data& Line 434  void Rectangle::setToSize(escript::Data&
434          const dim_t numQuad=out.getNumDataPointsPerSample();          const dim_t numQuad=out.getNumDataPointsPerSample();
435          const double hSize=getFirstCoordAndSpacing(0).second;          const double hSize=getFirstCoordAndSpacing(0).second;
436          const double vSize=getFirstCoordAndSpacing(1).second;          const double vSize=getFirstCoordAndSpacing(1).second;
437          const double size=min(hSize,vSize);          const double size=sqrt(hSize*hSize+vSize*vSize);
438  #pragma omp parallel for  #pragma omp parallel for
439          for (index_t k = 0; k < getNumElements(); ++k) {          for (index_t k = 0; k < getNumElements(); ++k) {
440              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