コード例 #1
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _appendCellField(self, t, field, label, labelId):
   """
   Call C++ appendCellField();
   """
   if label != None and labelId != None:
     ModuleOutputManager.appendCellField(self, t, field, label, labelId)
   else:
     ModuleOutputManager.appendCellField(self, t, field)
   return
コード例 #2
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _openTimeStep(self, t, mesh, label, labelId):
   """
   Call C++ openTimeStep();
   """
   if label != None and labelId != None:
     ModuleOutputManager.openTimeStep(self, t, mesh, label, labelId)
   else:
     ModuleOutputManager.openTimeStep(self, t, mesh)
   return
コード例 #3
0
 def _appendCellField(self, t, field, label, labelId):
     """
 Call C++ appendCellField();
 """
     if label != None and labelId != None:
         ModuleOutputManager.appendCellField(self, t, field, label, labelId)
     else:
         ModuleOutputManager.appendCellField(self, t, field)
     return
コード例 #4
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _open(self, mesh, nsteps, label, labelId):
   """
   Call C++ open();
   """
   if label != None and labelId != None:
     ModuleOutputManager.open(self, mesh, nsteps, label, labelId)
   else:
     ModuleOutputManager.open(self, mesh, nsteps)
   return
コード例 #5
0
 def _openTimeStep(self, t, mesh, label, labelId):
     """
 Call C++ openTimeStep();
 """
     if label != None and labelId != None:
         ModuleOutputManager.openTimeStep(self, t, mesh, label, labelId)
     else:
         ModuleOutputManager.openTimeStep(self, t, mesh)
     return
コード例 #6
0
 def _open(self, mesh, nsteps, label, labelId):
     """
 Call C++ open();
 """
     if label != None and labelId != None:
         ModuleOutputManager.open(self, mesh, nsteps, label, labelId)
     else:
         ModuleOutputManager.open(self, mesh, nsteps)
     return
コード例 #7
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
  def _configure(self):
    """
    Set members based using inventory.
    """
    PetscComponent._configure(self)

    ModuleOutputManager.coordsys(self, self.inventory.coordsys)
    ModuleOutputManager.writer(self, self.inventory.writer)
    if not isinstance(self.inventory.vertexFilter, NullComponent):
      ModuleOutputManager.vertexFilter(self, self.inventory.vertexFilter)
    if not isinstance(self.inventory.cellFilter, NullComponent):
      ModuleOutputManager.cellFilter(self, self.inventory.cellFilter)

    self.perfLogger = self.inventory.perfLogger
    return
コード例 #8
0
    def _configure(self):
        """
    Set members based using inventory.
    """
        PetscComponent._configure(self)

        ModuleOutputManager.coordsys(self, self.inventory.coordsys)
        ModuleOutputManager.writer(self, self.inventory.writer)
        if not isinstance(self.inventory.vertexFilter, NullComponent):
            ModuleOutputManager.vertexFilter(self, self.inventory.vertexFilter)
        if not isinstance(self.inventory.cellFilter, NullComponent):
            ModuleOutputManager.cellFilter(self, self.inventory.cellFilter)

        self.perfLogger = self.inventory.perfLogger
        return
コード例 #9
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _close(self):
   """
   Call C++ close().
   """
   ModuleOutputManager.close(self)
   return
コード例 #10
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _closeTimeStep(self):
   """
   Call C++ closeTimeStep().
   """
   ModuleOutputManager.closeTimeStep(self)
   return
コード例 #11
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _appendVertexField(self, t, field, mesh):
   """
   Call C++ appendVertexField();
   """
   ModuleOutputManager.appendVertexField(self, t, field, mesh)
   return
コード例 #12
0
ファイル: OutputManager.py プロジェクト: panzhengyang/pylith
 def _createModuleObj(self):
   """
   Create handle to C++ object.
   """
   ModuleOutputManager.__init__(self)
   return
コード例 #13
0
 def _close(self):
     """
 Call C++ close().
 """
     ModuleOutputManager.close(self)
     return
コード例 #14
0
 def _closeTimeStep(self):
     """
 Call C++ closeTimeStep().
 """
     ModuleOutputManager.closeTimeStep(self)
     return
コード例 #15
0
 def _appendVertexField(self, t, field, mesh):
     """
 Call C++ appendVertexField();
 """
     ModuleOutputManager.appendVertexField(self, t, field, mesh)
     return
コード例 #16
0
 def _createModuleObj(self):
     """
 Create handle to C++ object.
 """
     ModuleOutputManager.__init__(self)
     return