Xin and xout can be any intrinsic Fortran data type: integer, real, double precision, complex, logical or, character. Both must be arrays.
|
[ccm_host:~/ccm/source]% ccm_alltoall_x1
for i= 0 igot= 0 1 2 3
for i= 1 igot= 1 2 3 4
for i= 2 igot= 2 3 4 5
for i= 3 igot= 3 4 5 6
[ccm_host:~/ccm/source] %
The call to ccm_init initializes the communication package. Each task fills its copy of the array to_send. The program exchanges values using the ccm_alltoall call and print them. The call to ccm_close closes the communication package. |