/[escript]/trunk/ripley/test/python/run_simplesolve.py
ViewVC logotype

Diff of /trunk/ripley/test/python/run_simplesolve.py

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

revision 3803 by caltinay, Fri Feb 3 06:16:30 2012 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 58  NE2=8 Line 58  NE2=8
58  mpiSize=getMPISizeWorld()  mpiSize=getMPISizeWorld()
59  for x in [int(sqrt(mpiSize)),2,3,5,7,1]:  for x in [int(sqrt(mpiSize)),2,3,5,7,1]:
60      NX=x      NX=x
61      NY=mpiSize/x      NY=mpiSize//x
62      if NX*NY == mpiSize:      if NX*NY == mpiSize:
63          break          break
64    
65  for x in [(int(mpiSize**(1/3.)),int(mpiSize**(1/3.))),(2,3),(2,2),(1,2),(1,1)]:  for x in [(int(mpiSize**(1/3.)),int(mpiSize**(1/3.))),(2,3),(2,2),(1,2),(1,1)]:
66      NXb=x[0]      NXb=x[0]
67      NYb=x[1]      NYb=x[1]
68      NZb=mpiSize/(x[0]*x[1])      NZb=mpiSize//(x[0]*x[1])
69      if NXb*NYb*NZb == mpiSize:      if NXb*NYb*NZb == mpiSize:
70          break          break
71    

Legend:
Removed from v.3803  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26