Пример #1
0
 def test_barrier(self):
   """
   Test Communicator.barrier().
   """
   comm = mpicomm.petsc_comm_world()
   comm.barrier()
   return
Пример #2
0
 def test_rank(self):
   """
   Test Communicator.rank().
   """
   comm = mpicomm.petsc_comm_world()
   self.assertEqual(0, comm.rank)
   return
Пример #3
0
 def test_size(self):
   """
   Test Communicator.size().
   """
   comm = mpicomm.petsc_comm_world()
   self.assertEqual(1, comm.size)
   return
Пример #4
0
 def test_barrier(self):
     """
 Test Communicator.barrier().
 """
     comm = mpicomm.petsc_comm_world()
     comm.barrier()
     return
Пример #5
0
 def test_size(self):
     """
 Test Communicator.size().
 """
     comm = mpicomm.petsc_comm_world()
     self.assertEqual(1, comm.size)
     return
Пример #6
0
 def test_rank(self):
     """
 Test Communicator.rank().
 """
     comm = mpicomm.petsc_comm_world()
     self.assertEqual(0, comm.rank)
     return
Пример #7
0
 def test_petsc_comm_world(self):
   """
   Test petsc_comm_world().
   """
   comm = mpicomm.petsc_comm_world()
   return
Пример #8
0
 def test_petsc_comm_world(self):
     """
 Test petsc_comm_world().
 """
     comm = mpicomm.petsc_comm_world()
     return