Home | Trees | Indices | Help |
---|
|
1 """ 2 Application-class that implements pyFoamCloneCase.py 3 """ 4 5 from PyFoamApplication import PyFoamApplication 6 7 from PyFoam.RunDictionary.SolutionDirectory import SolutionDirectory 84111 description=""" 12 Clones a case by copying the system, constant and 0-directories 13 """ 14 PyFoamApplication.__init__(self,description=description,usage="%prog <source> <destination>",interspersed=True,nr=2)1517 self.parser.add_option("--chemkin", 18 action="store_true", 19 dest="chemkin", 20 default=False, 21 help="Also copy the Chemkin-directory") 22 self.parser.add_option("--add-item", 23 action="append", 24 dest="additional", 25 default=[], 26 help="Add a subdirectory to the list of cloned items (can be used more often than once)")2729 sName=self.parser.getArgs()[0] 30 dName=self.parser.getArgs()[1] 31 32 sol=SolutionDirectory(sName) 33 34 if self.parser.getOptions().chemkin: 35 sol.addToClone("chemkin") 36 37 for a in self.parser.getOptions().additional: 38 sol.addToClone(a) 39 40 sol.cloneCase(dName)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Wed Aug 29 19:08:05 2007 | http://epydoc.sourceforge.net |