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