예제 #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
예제 #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
예제 #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
예제 #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