[OMPI users] MPI_Type_Create_Struct + MPI_TYPE_CREATE_RESIZED

2015-01-02 Thread Diego Avesani
dear all, I have a problem with MPI_Type_Create_Struct and MPI_TYPE_CREATE_RESIZED. I have this variable type: * TYPE tParticle* * INTEGER :: ip* * REAL :: RP(2)* * REAL :: QQ(2)* * ENDTYPE tParticle* Then I define: Nstruct=3 *ALLOCATE(TYPES(Nstruct))*

Re: [OMPI users] MPI_Type_Create_Struct + MPI_TYPE_CREATE_RESIZED

2015-01-02 Thread Gilles Gouaillardet
Diego, First, i recommend you redefine tParticle and add a padding integer so everything is aligned. Before invoking MPI_Type_create_struct, you need to call MPI_Get_address(dummy, base, MPI%err) displacements = displacements - base MPI_Type_create_resized might be unnecessary if tParticle

[OMPI users] Help about Open CA

2015-01-02 Thread Huynh Thuc Cuoc
I have the problem with OpenCA installed on CentOS with msg "OpenCA Error: Server is not online or does not accept requests (/opt/openca/var/openca/tmp/openca_socket - /opt/openca/var/openca/tmp/openca_socket). 0" I needs help to the problem. Thank.

Re: [OMPI users] Help about Open CA

2015-01-02 Thread Ralph Castain
I suggest you contact the appropriate mailing list - this is Open MPI, and we don’t have anything to do with OpenCA > On Jan 2, 2015, at 5:24 AM, Huynh Thuc Cuoc wrote: > > I have the problem with OpenCA installed on CentOS with msg " > OpenCA Error: Server is not online or

Re: [OMPI users] MPI_Type_Create_Struct + MPI_TYPE_CREATE_RESIZED

2015-01-02 Thread Diego Avesani
Dear Gilles Dear all, I have done all that to avoid to pedding an integer, as suggested by George. I define tParticle as a common object. I am using Intel fortran compiler. George suggests: *"" The displacements are relative to the benign of your particle type. Thus the first one is not 0 but

Re: [OMPI users] MPI_Type_Create_Struct + MPI_TYPE_CREATE_RESIZED

2015-01-02 Thread Gustavo Correa
Besides Gilles suggestions, wouldn't this: > TYPE tParticle > INTEGER :: ip INTEGER :: dummy DOUBLE PRECISION :: RP(2) DOUBLE PRECISION :: QQ(2) > > ENDTYPE tParticle (instead of making RP and QQ real) match better your declarations of (MPI) TYPES()

Re: [OMPI users] OMPI users] MPI_Type_Create_Struct + MPI_TYPE_CREATE_RESIZED

2015-01-02 Thread Gilles Gouaillardet
Diego, George gave you the solution, The snippet you posted has two mistakes You did not remove mpi_get_address(dummy) from all displacements (See my previous reply) You pass incorrect values to mpi_type_create_resized Can you post a trimmed version of your program instead of a snippet ? Gus

Re: [OMPI users] Help about Open CA

2015-01-02 Thread Huynh Thuc Cuoc
Thanks On Fri, Jan 2, 2015 at 10:38 PM, Ralph Castain wrote: > I suggest you contact the appropriate mailing list - this is Open MPI, and > we don’t have anything to do with OpenCA > > On Jan 2, 2015, at 5:24 AM, Huynh Thuc Cuoc wrote: > > I have the