/[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 269 by elspeth, Wed Nov 30 01:59:55 2005 UTC
# Line 1  Line 1 
1  #!/usr/bin/python  #!/usr/bin/python
2  # $Id$  # $Id$
3  import modelframe  from esys.escript import modelframe
4    
5  #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.
6  # invoke this by doing ./runmodel.py <filename.xml>  # invoke this by doing ./runmodel.py <filename.xml>
# Line 29  def main(): Line 29  def main():
29          simstring = f.read()          simstring = f.read()
30          sim = modelframe.parse(simstring)          sim = modelframe.parse(simstring)
31          print sim          print sim
32          sim.modelframe.run()          sim.run()
33    
34  if __name__=='__main__':  if __name__=='__main__':
35      main()      main()

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

  ViewVC Help
Powered by ViewVC 1.1.26