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.ensureGeneralOptions() 11 self.generalOpts.add_option("--clear-case", 12 action="store_true", 13 default=False, 14 dest="clearCase", 15 help="Clear all timesteps except for the first before running")
16
17 - def clearCase(self,sol):
18 if self.opts.clearCase: 19 print "Clearing out old timesteps ...." 20 sol.clearResults()
21