Exemplo n.º 1
0
 def test_maxdouble(self):
     """
 Test maxdouble()
 """
     from pylith.utils.utils import maxdouble
     self.assertAlmostEqual(1.0, maxdouble() / 1.0e+99, 7)
     return
Exemplo n.º 2
0
 def test_maxdouble(self):
   """
   Test maxdouble()
   """
   from pylith.utils.utils import maxdouble
   self.assertAlmostEqual(1.0, maxdouble()/1.0e+99, 7)
   return
Exemplo n.º 3
0
 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())
Exemplo n.º 4
0
 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())