/[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 152 by jgs, Thu Sep 1 03:31:39 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 10  by Lutz Gross, ACcESS, University of Que Line 10  by Lutz Gross, ACcESS, University of Que
10  import sys  import sys
11  import os  import os
12  import unittest  import unittest
13    import time
14    
15  from esys.escript import *  from esys.escript import *
16  from esys.escript.linearPDEs import *  from esys.escript.linearPDEs import *
# Line 18  from esys import finley Line 19  from esys import finley
19  from math import *  from math import *
20  from numarray import array  from numarray import array
21    
22    starttime = time.clock()
23    
24  numElements=10  numElements=10
25  max_error=0.  max_error=0.
26  max_error_text=""  max_error_text=""
# Line 239  print "********************************* Line 242  print "*********************************
242  print "maximal error:", max_error_text  print "maximal error:", max_error_text
243  print "******************************************************************************************************************"  print "******************************************************************************************************************"
244    
245    stoptime = time.clock()
246    elapsed = stoptime - starttime
247    print "\nElapsed time: ", elapsed, "\n"
248    
249  if max_error > error_tol:  if max_error > error_tol:
250    print "max error exceeds tolerance"    print "max error exceeds tolerance"
251    sys.exit(1)    sys.exit(1)

Legend:
Removed from v.152  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26