/[escript]/trunk/pyvisi/examples/run_escript
ViewVC logotype

Annotation of /trunk/pyvisi/examples/run_escript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 418 - (hide annotations)
Fri Jan 6 01:55:18 2006 UTC (15 years, 9 months ago) by cochrane
File size: 1298 byte(s)
Initial import to repository.  This is the script that runs all the escript
example scripts.

1 cochrane 418 #!/usr/bin/env python
2     #
3     # run all of the examples
4     #
5     # $Id: run_escript,v 1.1 2006/01/03 08:21:37 paultcochrane Exp $
6    
7     # process arguments if any
8     import sys
9     numArgs = len(sys.argv)
10     if numArgs == 1:
11     renderer = "vtk"
12     else:
13     renderer = sys.argv[1]
14    
15     # the list of files to process
16     Files = (
17     "escript_scalarData1D.py",
18     "escript_scalarData2D.py",
19     "escript_scalarData3D.py",
20     "escript_twoDVectorData1D.py",
21     "escript_twoDVectorData2D.py",
22     "escript_twoDVectorData3D.py",
23     "escript_threeDVectorData1D.py",
24     "escript_threeDVectorData2D.py",
25     "escript_threeDVectorData3D.py",
26     "escript_twoByTwoTensorData1D.py",
27     "escript_twoByTwoTensorData2D.py",
28     "escript_twoByTwoTensorData3D.py",
29     "escript_threeByThreeTensorData1D.py",
30     "escript_threeByThreeTensorData2D.py",
31     "escript_threeByThreeTensorData3D.py",
32     )
33    
34     print "Running all examples"
35    
36     # run the examples
37     import os
38     err = open("run_escript.errs", "w")
39     for file in Files:
40     print ""
41     print 70*"#"
42     print "Running %s" % file
43     print 70*"#"
44     print ""
45     result = os.system("python %s %s" % (file,renderer) )
46     if result != 0:
47     print "Error running example script: %s" % file
48     err.write("Error running example script: %s\n" % file)
49    
50     err.close()
51    
52     # vim: expandtab shiftwidth=4:

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26