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

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

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

revision 152 by jgs, Thu Sep 15 03:44:45 2005 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 3  Line 3 
3  import sys  import sys
4  import os  import os
5  import unittest  import unittest
6    import time
7    
8  from esys.escript import *  from esys.escript import *
9  from esys.escript.linearPDEs import *  from esys.escript.linearPDEs import *
10  from esys import finley  from esys import finley
11    
12    starttime = time.clock()
13    
14  print "\nSimpleSolve.py"  print "\nSimpleSolve.py"
15  print "--------------"  print "--------------"
16    
# Line 20  error_tol=1.e-5 Line 23  error_tol=1.e-5
23  # mydomain=finley.Rectangle(140,140)  # mydomain=finley.Rectangle(140,140)
24    
25  # print "\nGenerate mesh: finley.Rectangle(4,4,1)=>"  # print "\nGenerate mesh: finley.Rectangle(4,4,1)=>"
26  mydomain=finley.Rectangle(10,10,1)  mydomain=finley.Rectangle(150,10,1)
27  # mydomain=finley.Rectangle(190,190,1)  # mydomain=finley.Rectangle(190,190,1)
28    
29  print "\nGenerate mesh: finley.Rectangle(151,151,1)=>"  print "\nGenerate mesh: finley.Rectangle(151,151,1)=>"
# Line 142  print "\n-----" Line 145  print "\n-----"
145  print "Done."  print "Done."
146  print "-----"  print "-----"
147    
148    stoptime = time.clock()
149    elapsed = stoptime - starttime
150    print "\nElapsed time: ", elapsed, "\n"
151    
152  sys.exit(0)  sys.exit(0)

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

  ViewVC Help
Powered by ViewVC 1.1.26