예제 #1
0
 public void Gather(Complex[] dst, Complex src)
 {
     if (_mpiexists)
     {
         fixed(Complex *dstPtr = &dst[0])
         UNM.Gather(&src, 1, dstPtr, 1, Master, Communicator);
     }
     else
     {
         dst [0] = src;
     }
 }
예제 #2
0
 public void Gather(Complex *dst, Complex *src, int dstSize, int srcSize)
 {
     if (_mpiexists)
     {
         UNM.Gather(src, srcSize, dst, dstSize, Master, Communicator);
     }
     else
     {
         if (src != dst)
         {
             for (int i = 0; i < srcSize; i++)
             {
                 dst [i] = src [i];
             }
         }
     }
 }