Re: [OMPI users] issue with column type in language C

2012-08-20 Thread Jeff Squyres
It looks like you also posted this to Stackoverflow: http://stackoverflow.com/questions/12031330/mpi-issue-with-column-type-in-language-c It looks like it was answered, too. :-) On Aug 19, 2012, at 8:38 PM, Christian Perrier wrote: > Hi, > > Indeed I try to make the equivalent of this

Re: [OMPI users] issue with column type in language C

2012-08-19 Thread Christian Perrier
Hi, Indeed I try to make the equivalent of this Fortran program in C. The Fortran version works fine but I have problems now in C. I can't get to exchange between 2 processes a single column. Could you try please to compile and execute the following test code wich simply sends a column from the

Re: [OMPI users] issue with column type in language C

2012-08-19 Thread Rayson Ho
Hi Christian, The code you posted is very similar to another school assignment sent to this list 2 years ago: http://www.open-mpi.org/community/lists/users/2010/10/14619.php At that time, the code was written in Fortran, and now it is written in C - however, the variable names, logic, etc are

[OMPI users] issue with column type in language C

2012-08-19 Thread Christian Perrier
Hi, I have a problem with MPI_Senrecv communication where I send columns on edges between processes. For debugging, I show you below a basic example where I initialize a 10x10 matrix ("x0" array) with x_domain=4 and y_domain=4. For the test, I simply initialize the 2D array values with x0[i][j] =