Пример #1
0
 def test_dimension(self):
     """
 Test debug().
 """
     mesh = Mesh()
     self.assertEqual(0, mesh.dimension())
     return
Пример #2
0
 def test_dimension(self):
   """
   Test debug().
   """
   mesh = Mesh()
   self.assertEqual(0, mesh.dimension())
   return
Пример #3
0
 def test_constructorA(self):
     """
 Test constructor.
 """
     mesh = Mesh()
     self.assertEqual(0, mesh.dimension())
     self.assertEqual(False, mesh.debug())
     return
Пример #4
0
 def test_constructorA(self):
   """
   Test constructor.
   """
   mesh = Mesh()
   self.assertEqual(0, mesh.dimension())
   self.assertEqual(False, mesh.debug())
   return
Пример #5
0
 def test_constructorB(self):
     """
 Test constructor.
 """
     dim = 2
     mesh = Mesh(dim=dim)
     self.assertEqual(dim, mesh.dimension())
     self.assertEqual(False, mesh.debug())
     return
Пример #6
0
  def test_dimension(self):
    """
    Test debug().
    """
    mesh = self._getMesh()
    submesh = Mesh(mesh=mesh, label="bc")

    self.assertEqual(1, submesh.dimension())
    return
Пример #7
0
 def test_constructorB(self):
   """
   Test constructor.
   """
   mesh = self._getMesh()
   submesh = Mesh(mesh=mesh, label="bc")
   self.assertEqual(1, submesh.dimension())
   self.assertEqual(False, mesh.debug())
   return
Пример #8
0
 def test_constructorB(self):
   """
   Test constructor.
   """
   dim = 2
   mesh = Mesh(dim=dim)
   self.assertEqual(dim, mesh.dimension())
   self.assertEqual(False, mesh.debug())
   return
Пример #9
0
    def test_dimension(self):
        """
    Test debug().
    """
        mesh = self._getMesh()
        submesh = Mesh(mesh=mesh, label="bc")

        self.assertEqual(1, submesh.dimension())
        return
Пример #10
0
 def test_constructorB(self):
     """
 Test constructor.
 """
     mesh = self._getMesh()
     submesh = Mesh(mesh=mesh, label="bc")
     self.assertEqual(1, submesh.dimension())
     self.assertEqual(False, mesh.debug())
     return
Пример #11
0
 def test_constructorC(self):
     """
 Test constructor.
 """
     dim = 2
     from pylith.mpi.Communicator import mpi_comm_self
     mesh = Mesh(dim=dim, comm=mpi_comm_self())
     self.assertEqual(dim, mesh.dimension())
     self.assertEqual(False, mesh.debug())
     return
Пример #12
0
 def test_constructorC(self):
   """
   Test constructor.
   """
   dim = 2
   from pylith.mpi.Communicator import mpi_comm_self
   mesh = Mesh(dim=dim, comm=mpi_comm_self())
   self.assertEqual(dim, mesh.dimension())
   self.assertEqual(False, mesh.debug())
   return