Ejemplo n.º 1
0
 def test_comm(self):
     """
 Test comm().
 """
     from pylith.mpi.Communicator import petsc_comm_self
     mesh = Mesh(dim=3, comm=petsc_comm_self())
     comm = mesh.comm()
     self.assertEqual(0, comm.rank)
     self.assertEqual(1, comm.size)
     return
Ejemplo n.º 2
0
 def test_comm(self):
   """
   Test comm().
   """
   from pylith.mpi.Communicator import petsc_comm_self
   mesh = Mesh(dim=3, comm=petsc_comm_self())
   comm = mesh.comm()
   self.assertEqual(0, comm.rank)
   self.assertEqual(1, comm.size)
   return
Ejemplo n.º 3
0
  def test_comm(self):
    """
    Test comm().
    """
    mesh = self._getMesh()
    submesh = Mesh(mesh=mesh, label="bc")

    comm = submesh.comm()
    self.assertEqual(0, comm.rank)
    self.assertEqual(1, comm.size)
    return
Ejemplo n.º 4
0
    def test_comm(self):
        """
    Test comm().
    """
        mesh = self._getMesh()
        submesh = Mesh(mesh=mesh, label="bc")

        comm = submesh.comm()
        self.assertEqual(0, comm.rank)
        self.assertEqual(1, comm.size)
        return