Esempio n. 1
0
 def test_dimension(self):
     """
 Test debug().
 """
     mesh = Mesh()
     self.assertEqual(0, mesh.dimension())
     return
Esempio n. 2
0
 def test_dimension(self):
   """
   Test debug().
   """
   mesh = Mesh()
   self.assertEqual(0, mesh.dimension())
   return
Esempio n. 3
0
 def test_constructorA(self):
     """
 Test constructor.
 """
     mesh = Mesh()
     self.assertEqual(0, mesh.dimension())
     self.assertEqual(False, mesh.debug())
     return
Esempio n. 4
0
 def test_constructorA(self):
   """
   Test constructor.
   """
   mesh = Mesh()
   self.assertEqual(0, mesh.dimension())
   self.assertEqual(False, mesh.debug())
   return
Esempio n. 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
Esempio n. 6
0
  def test_dimension(self):
    """
    Test debug().
    """
    mesh = self._getMesh()
    submesh = Mesh(mesh=mesh, label="bc")

    self.assertEqual(1, submesh.dimension())
    return
Esempio n. 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
Esempio n. 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
Esempio n. 9
0
    def test_dimension(self):
        """
    Test debug().
    """
        mesh = self._getMesh()
        submesh = Mesh(mesh=mesh, label="bc")

        self.assertEqual(1, submesh.dimension())
        return
Esempio n. 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
Esempio n. 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
Esempio n. 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