Re: [OMPI users] MPI_Type_struct for structs with dynamic arrays

2008-08-20 Thread Jitendra Kumar
structure (of type individual). > > george. > > On Aug 19, 2008, at 5:12 PM, Jitendra Kumar wrote: > >> George, >> Thanks for your reply. However, I am still not able to resolve the >> issue. I have been looking at one of your old post >> http://www.open-mpi.org/co

Re: [OMPI users] MPI_Type_struct for structs with dynamic arrays

2008-08-19 Thread Jitendra Kumar
y, you provide > a pointer to the pointer in the individual struct. > > Try the following > MPI_Get_address(&parentPop[0].indiv[0].intvar[0], &disp[0]); > instead of > MPI_Get_address(&parentPop[0].indiv[0].intvar, &disp[0]); > > Please note the [0] afte

[OMPI users] MPI_Type_struct for structs with dynamic arrays

2008-08-10 Thread Jitendra Kumar
Hi, I am trying to use MPI derived datatype doutines for sending a struct which contains dynamically allocated arrays. I tried implementing it using MPI_Type_struct. It doesn't throws any error but messages being received (of the declared datatype) aren't correct. Some memory corruption seems to be

[OMPI users] Scope of MPI derived data types in MPI_COMM_WORLD

2008-07-28 Thread Jitendra Kumar
27;s scope anywhere in the code ? Is any derived data type declared valid anywhere in MPI_COMM_WORLD ? Thanks, Jitendra -- Jitendra Kumar Doctoral Student Department of Civil, Construction and Environmental Engineering North Carolina State University Raleigh, NC 27695 jku...@ncsu.edu http://www