Exemple #1
0
 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))
Exemple #2
0
 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))
Exemple #3
0
 def initialize(self, totalTime, numTimeSteps, normalizer):
   """
   Initialize boundary condition.
   """
   ModuleBoundaryCondition.initialize(self, self.mesh(), self.upDir)
   return
Exemple #4
0
 def initialize(self, totalTime, numTimeSteps, normalizer):
     """
 Initialize boundary condition.
 """
     ModuleBoundaryCondition.initialize(self, self.mesh(), self.upDir)
     return