コード例 #1
0
        private unsafe void PrintAllMuHaHa(UnsafeArray data, int nx, int ny)
        {
            var src = data.ReShape(nx, ny);

            for (int r = 0; r < _mpi.Size; r++)
            {
                if (_mpi.Rank == r)
                {
                    for (int i = 0; i < nx; i++)
                    {
                        Console.Write($"{_mpi.Rank} i:{i}");
                        for (int j = 0; j < ny; j++)
                        {
                            Console.Write($"{src[i, j]} ");
                        }

                        Console.WriteLine();
                    }
                }

                _mpi.Barrier();
            }
        }