def test_maxdouble(self): """ Test maxdouble() """ from pylith.utils.utils import maxdouble self.assertAlmostEqual(1.0, maxdouble() / 1.0e+99, 7) return
def test_maxdouble(self): """ Test maxdouble() """ from pylith.utils.utils import maxdouble self.assertAlmostEqual(1.0, maxdouble()/1.0e+99, 7) return
def testStableTimeStepImplicit(self): """ Test stableTimeStepImplicit(). """ from pylith.topology.Mesh import Mesh mesh = Mesh() dt = self.material.stableTimeStepImplicit(mesh) from pylith.utils.utils import maxdouble self.assertAlmostEqual(1.0, dt/maxdouble())
def testStableTimeStepImplicit(self): """ Test stableTimeStepImplicit(). """ from pylith.topology.Mesh import Mesh mesh = Mesh() dt = self.material.stableTimeStepImplicit(mesh) from pylith.utils.utils import maxdouble self.assertAlmostEqual(1.0, dt / maxdouble())