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

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

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

revision 3944 by caltinay, Mon Aug 20 02:11:22 2012 UTC revision 3962 by jfenwick, Tue Sep 11 09:12:07 2012 UTC
# Line 51  Brick::Brick(int n0, int n1, int n2, dou Line 51  Brick::Brick(int n0, int n1, int n2, dou
51      // ratio as the number of elements      // ratio as the number of elements
52      if (d0<=0 && d1<=0 && d2<=0) {      if (d0<=0 && d1<=0 && d2<=0) {
53          warn=true;          warn=true;
54          d0=(int)(pow(m_mpiInfo->size*(n0+1)*(n0+1)/((float)(n1+1)*(n2+1)), 1./3));          d0=(int)(pow(m_mpiInfo->size*(n0+1)*(n0+1)/((float)(n1+1)*(n2+1)), 1.f/3));
55          d1=(int)(d0*n1/(float)n0);          d1=(int)(d0*n1/(float)n0);
56          d2=m_mpiInfo->size/(d0*d1);          d2=m_mpiInfo->size/(d0*d1);
57          if (d0*d1*d2 != m_mpiInfo->size) {          if (d0*d1*d2 != m_mpiInfo->size) {

Legend:
Removed from v.3944  
changed lines
  Added in v.3962

  ViewVC Help
Powered by ViewVC 1.1.26