示例#1
0
 def test_constructor(self):
   """
   Test constructor.
   """
   filter = CellFilterAvg()
   filter._configure()
   self.failIf(filter.filter is None)
   return
示例#2
0
 def test_constructor(self):
     """
 Test constructor.
 """
     filter = CellFilterAvg()
     filter._configure()
     self.failIf(filter.filter is None)
     return
示例#3
0
  def test_initialize(self):
    """
    Test constructor.
    """
    spaceDim = 2
    
    from pylith.feassemble.FIATSimplex import FIATSimplex
    cell = FIATSimplex()
    cell.inventory.dimension = 2
    cell.inventory.degree = 2
    cell.inventory.order = 2
    cell._configure()

    from pylith.feassemble.Quadrature import Quadrature
    quadrature = Quadrature()
    quadrature.inventory.cell = cell
    quadrature._configure()
    quadrature.preinitialize(spaceDim)
    quadrature.initialize()

    filter = CellFilterAvg()
    filter._configure()
    filter.initialize(quadrature)
    return
示例#4
0
    def test_initialize(self):
        """
    Test constructor.
    """
        spaceDim = 2

        from pylith.feassemble.FIATSimplex import FIATSimplex
        cell = FIATSimplex()
        cell.inventory.dimension = 2
        cell.inventory.degree = 2
        cell.inventory.order = 2
        cell._configure()

        from pylith.feassemble.Quadrature import Quadrature
        quadrature = Quadrature()
        quadrature.inventory.cell = cell
        quadrature._configure()
        quadrature.preinitialize(spaceDim)
        quadrature.initialize()

        filter = CellFilterAvg()
        filter._configure()
        filter.initialize(quadrature)
        return