Package PyFoam :: Package Applications :: Module CommonClearCase
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.Applications.CommonClearCase

 1  """ 
 2  Class that implements the common functionality for clearing the cases 
 3  """ 
 4   
5 -class CommonClearCase(object):
6 """ The class that clears the case 7 """ 8
9 - def addOptions(self):
10 self.parser.add_option("--clear-case", 11 action="store_true", 12 default=False, 13 dest="clearCase", 14 help="Clear all timesteps except for the first before running")
15
16 - def clearCase(self,sol):
17 if self.opts.clearCase: 18 print "Clearing out old timesteps ...." 19 sol.clearResults()
20