コード例 #1
0
ファイル: test_exceptions.py プロジェクト: ralic/mpi4py
 def testInterNull(self):
     comm_null = MPI.Intercomm()
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Get_remote_group)
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Get_remote_size)
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Dup)
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Create, MPI.GROUP_EMPTY)
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Split, color=0, key=0)
     self.assertRaisesMPI(MPI.ERR_COMM, comm_null.Merge, high=True)
コード例 #2
0
ファイル: test_comm.py プロジェクト: mpi4py/mpi4py
 def testContructorInter(self):
     comm_null = MPI.Intercomm()
     self.assertFalse(comm_null is MPI.COMM_NULL)
     self.assertEqual(comm_null, MPI.COMM_NULL)