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

Diff of /trunk/esys2/finley/test/python/GradTest.py

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

revision 141 by jgs, Mon Jul 25 05:15:41 2005 UTC revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC
# Line 21  from numarray import array Line 21  from numarray import array
21  numElements=10  numElements=10
22  max_error=0.  max_error=0.
23  max_error_text=""  max_error_text=""
24    error_tol=pow(10,-10)
25    
26  for dim in [2,3]:  for dim in [2,3]:
27    for order in [1,2]:    for order in [1,2]:
# Line 237  print "\n\n" Line 238  print "\n\n"
238  print "******************************************************************************************************************"  print "******************************************************************************************************************"
239  print "maximal error:", max_error_text  print "maximal error:", max_error_text
240  print "******************************************************************************************************************"  print "******************************************************************************************************************"
241    
242    if max_error > error_tol:
243      print "max error exceeds tolerance"
244      sys.exit(1)
245    
246    sys.exit(0)

Legend:
Removed from v.141  
changed lines
  Added in v.147

  ViewVC Help
Powered by ViewVC 1.1.26