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

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

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

revision 3773 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3774 by jfenwick, Wed Jan 18 06:29:34 2012 UTC
# Line 81  for onElements in [False,True]: Line 81  for onElements in [False,True]:
81                    c+=whereZero(x[1])+whereZero(x[1]-1.)                    c+=whereZero(x[1])+whereZero(x[1]-1.)
82                error=TheTest(msh,c,reduce)                error=TheTest(msh,c,reduce)
83                text="Rectangle order = %d%s%s, periodic0= %d, periodic1= %d: error= %f"%(order,redtext,onElmtext,i0,i1,error)                text="Rectangle order = %d%s%s, periodic0= %d, periodic1= %d: error= %f"%(order,redtext,onElmtext,i0,i1,error)
84                print "@@ ",text                print("@@ ",text)
85                if error>max_error:                if error>max_error:
86                    max_error=error                    max_error=error
87                    max_text=text                    max_text=text
# Line 101  for onElements in [False,True]: Line 101  for onElements in [False,True]:
101                    c+=whereZero(x[2])+whereZero(x[2]-1.)                    c+=whereZero(x[2])+whereZero(x[2]-1.)
102                  error=TheTest(msh,c,reduce)                  error=TheTest(msh,c,reduce)
103                  text="Brick order = %d%s%s, periodic0= %d, periodic1= %d, periodic2= %d: error= %f"%(order,redtext,onElmtext,i0,i1,i2,error)                  text="Brick order = %d%s%s, periodic0= %d, periodic1= %d, periodic2= %d: error= %f"%(order,redtext,onElmtext,i0,i1,i2,error)
104                  print "@@ ",text                  print("@@ ",text)
105                  if error>max_error:                  if error>max_error:
106                      max_error=error                      max_error=error
107                      max_text=text                      max_text=text
108    
109  print "@@@@ maximum error for :",max_text  print("@@@@ maximum error for :",max_text)

Legend:
Removed from v.3773  
changed lines
  Added in v.3774

  ViewVC Help
Powered by ViewVC 1.1.26