<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">HALLO,<br><br>I would like to send a whole column of a dynamicly allocated array (in C language).<br>When i use derived datatypes(for example MPI_Type_vector) i can send a column ONLY if i have static array but when i use dynamic allocation i have problem!<br>Please tell me one way to send a column of a dynamc allocated array.<br><br>For example :<br>      MPI_Datatype columntype;<br>      MPI_Type_vector(10, 1, 10, MPI_INT, &columntype);<br>      MPI_Type_commit(&columntype);<br> if(rank==0){<br>                     dyn_array=(int **) calloc(10,sizeof(int *));<br>                     for(i =
 0; i < 10; i++){<br>                             dyn_array[i] =(int *) calloc(10,sizeof(int));<br>                     }<br>                     for(i=0;i<10;i++){ for(j=0;j<10;j++) dyn_array[i][j]=9;}<br>                  MPI_Send(&dyn_array[0][0], 1, columntype, dest, tag,MPI_COMM_WORLD);<br> }<br>if(rank==1){<br>    MPI_Recv(&other_dyn_array[0][0], 1, columntype, 0, tag, MPI_COMM_WORLD, &Stat);<br>}<br><br>the values of the receive are not correct!!<br><br>Thank You!<br></td></tr></table><br>__________________________________________________<br>Χρησιμοποιείτε
 Yahoo!;<br>Βαρεθήκατε τα ενοχλητικά μηνύματα (spam);   Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  <br>http://mail.yahoo.gr