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

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

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

revision 4575 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 140  for n in [100000]: Line 140  for n in [100000]:
140        if isinstance(prop[0], int):        if isinstance(prop[0], int):
141            o=prop[0]            o=prop[0]
142            if tp=="s":            if tp=="s":
143          q=1                  q=1
144        else:            else:
145          q=dim                  q=dim
146            NE=int(float(n/q-1)**(1./dim)/o+0.5)            NE=int(float(n/q-1)**(1./dim)/o+0.5)
147            prog+="NE=%d\n"%NE            prog+="NE=%d\n"%NE
148            if dim==2:            if dim==2:

Legend:
Removed from v.4575  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26