MPI_COMM_DUP_FN

MPI_COMM_DUP_FN - Built-in MPI function to simple-mindedly copy communicator attributes.

SYNOPSIS

 
#include <mpi.h> 
int MPI_COMM_DUP_FN(MPI_Comm comm, int key, void *extra, 
      void *attrin, void *attrout, int *flag) 

INPUT PARAMETERS

comm
- communicator (handle)
key
- key value (integer)
extra
- extra state
attrin
- in value for attribute

OUTPUT PARAMETERS

attrout
- out value for attribute
flag
- 1 if attribute copied successfully, 0 otherwise (logical)

NOTES

This function blindly byte-copies attributes on communicators. It is the default atrribute-copying function for communicators. This function will always return MPI_SUCCESS, and flag will always be set to 1.

The actual copy is performed by the code

 
*((void **) attrout) = attrin; 
If this simple assignment is not sufficient for your attributes, you will need to reassign the attribute-copying function on relevant keyvals on communicators with the MPI_Comm_keyval_create function.


NOTES FOR FORTRAN

All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK) have an additional argument ierr at the end of the argument list. ierr is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and are invoked with the call statement.

All MPI objects (e.g., MPI_Datatype, MPI_Comm) are of type INTEGER in Fortran.


SEE ALSO

MPI_Comm_keyval_create



© 2009 Critical Software SA. All trademarks and copyrights on this page are owned by their respective owners.
csWMPI II II™, csWMPI II™ and PatentMPI™ are trademarks of Critical Software SA. All Rights Reserved.