def test_constructor(self): """ Test constructor. """ filter = CellFilterAvg() filter._configure() self.failIf(filter.filter is None) return
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