def test_stableTimeStep(self): """ Test stableTimeStep(). """ (mesh, fault, fields) = self._initialize() from pylith.utils.utils import maxscalar self.assertAlmostEqual(1.0, fault.stableTimeStep(mesh)/maxscalar(), 7) return
def test_stableTimeStep(self): """ Test stableTimeStep(). """ (mesh, bc, fields) = self._initialize() from pylith.utils.utils import maxscalar self.assertAlmostEqual(1.0, bc.stableTimeStep(mesh)/maxscalar(), 7) return
def test_stableTimeStep(self): """ Test stableTimeStep(). """ (mesh, integrator) = self._preinitialize() fields = self._initialize(mesh, integrator) from pylith.utils.utils import maxscalar self.assertAlmostEqual(1.0, integrator.stableTimeStep(mesh)/maxscalar(), 7) return