def test_barrier(self): """ Test Communicator.barrier(). """ comm = mpicomm.petsc_comm_world() comm.barrier() return
def test_rank(self): """ Test Communicator.rank(). """ comm = mpicomm.petsc_comm_world() self.assertEqual(0, comm.rank) return
def test_size(self): """ Test Communicator.size(). """ comm = mpicomm.petsc_comm_world() self.assertEqual(1, comm.size) return
def test_petsc_comm_world(self): """ Test petsc_comm_world(). """ comm = mpicomm.petsc_comm_world() return