/[escript]/trunk/escript/py_src/runmodel.py
ViewVC logotype

Diff of /trunk/escript/py_src/runmodel.py

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

revision 265 by elspeth, Tue Nov 29 22:56:08 2005 UTC revision 614 by elspeth, Wed Mar 22 01:37:07 2006 UTC
# Line 1  Line 1 
1  #!/usr/bin/python  #!/usr/bin/python
2  # $Id$  # $Id$
3  import modelframe  
4    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
5                        http://www.access.edu.au
6                    Primary Business: Queensland, Australia"""
7    __license__="""Licensed under the Open Software License version 3.0
8                 http://www.opensource.org/licenses/osl-3.0.php"""
9    
10    from esys.escript import modelframe
11    
12  #commandline utility to take an xml file, parse it, and run a simulation.  #commandline utility to take an xml file, parse it, and run a simulation.
13  # invoke this by doing ./runmodel.py <filename.xml>  # invoke this by doing ./runmodel.py <filename.xml>
# Line 29  def main(): Line 36  def main():
36          simstring = f.read()          simstring = f.read()
37          sim = modelframe.parse(simstring)          sim = modelframe.parse(simstring)
38          print sim          print sim
39          sim.modelframe.run()          sim.run()
40    
41  if __name__=='__main__':  if __name__=='__main__':
42      main()      main()

Legend:
Removed from v.265  
changed lines
  Added in v.614

  ViewVC Help
Powered by ViewVC 1.1.26