def _configure(self): """ Setup members using inventory. """ try: PetscComponent._configure(self) ModuleBoundaryCondition.label(self, self.inventory.label) self.upDir = map(float, self.inventory.upDir) self.perfLogger = self.inventory.perfLogger except ValueError, err: aliases = ", ".join(self.aliases) raise ValueError("Error while configuring boundary condition " "(%s):\n%s" % (aliases, err.message))
def initialize(self, totalTime, numTimeSteps, normalizer): """ Initialize boundary condition. """ ModuleBoundaryCondition.initialize(self, self.mesh(), self.upDir) return