/[escript]/trunk/finley/test/python/time_chunks.py
ViewVC logotype

Diff of /trunk/finley/test/python/time_chunks.py

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

revision 1572 by gross, Sat May 24 21:31:04 2008 UTC revision 1573 by gross, Mon May 26 13:01:31 2008 UTC
# Line 106  if error>REL_TOL*Lsup(u_ex): raise Runti Line 106  if error>REL_TOL*Lsup(u_ex): raise Runti
106  """  """
107    
108    
109  for n in [10000, 50000, 100000]:  #for n in [10000, 50000, 100000]:
110    for n in [100000]:
111  # for n in [1000, 10000]:  # for n in [1000, 10000]:
112   #for prop in [ (1,2), (2,2), (1,3), (2,3) ]:   #for prop in [ (1,2), (2,2), (1,3), (2,3) ]:
113   for prop in [ (1,2), (1,3) ]:   for prop in [ (1,2), (1,3) ]:
# Line 120  for n in [10000, 50000, 100000]: Line 121  for n in [10000, 50000, 100000]:
121          q=1          q=1
122        else:        else:
123          q=dim          q=dim
124            NE=int(float(n/dim)**(1./dim)/o)+1            NE=int(float(n/q-1)**(1./dim)/o+0.5)
125            prog+="NE=%d\n"%NE            prog+="NE=%d\n"%NE
126            if dim==2:            if dim==2:
127                if o==1:                if o==1:
# Line 148  for n in [10000, 50000, 100000]: Line 149  for n in [10000, 50000, 100000]:
149        prog+=SOLVE_AND_TEST        prog+=SOLVE_AND_TEST
150        # run code:        # run code:
151        print >> file("__prog","w"), prog        print >> file("__prog","w"), prog
152        for CHUNK in [1,10,100,1000,10000, 100000]:        # activate for dynamic
153         for CHUNK_PCG in [1,10,100,1000,10000, 100000]:        # for CHUNK in [1,10,100,1000,10000, 100000]:
154          #   for CHUNK_PCG in [1,10,100,1000,10000, 100000]:
155          # activate for static
156          for CHUNK in [-1]:
157           for CHUNK_PCG in [-1]:
158          if CHUNK*NUM_THREADS <= n and CHUNK_PCG*NUM_THREADS <=n:          if CHUNK*NUM_THREADS <= n and CHUNK_PCG*NUM_THREADS <=n:
159           time_per_iter=0           time_per_iter=0
160           for i in range(REPEAT):           for i in range(REPEAT):

Legend:
Removed from v.1572  
changed lines
  Added in v.1573

  ViewVC Help
Powered by ViewVC 1.1.26