Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 4f10feba79911d5005dc3169b1ef6509 > files > 319

mpich2-doc-1.2.1-4.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MPI_Register_datarep</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="MPI_Register_datarep"><H1>MPI_Register_datarep</H1></A>
Register functions for user-defined data  representations 
<H2>Synopsis</H2>
<PRE>
int MPI_Register_datarep(char *name,
                       MPI_Datarep_conversion_function *read_conv_fn,
                       MPI_Datarep_conversion_function *write_conv_fn,
                       MPI_Datarep_extent_function *extent_fn,
                       void *state)
</PRE>
<H2>Input Parameters</H2>
<DL>
<DT><B>name </B><DD>data representation name (string)

<DT><B>read_conv_fn </B><DD>function invoked to convert from file representation to
native representation (function)

<DT><B>write_conv_fn </B><DD>function invoked to convert from native representation to
file representation (function)

<DT><B>extent_fn </B><DD>function invoked to get the exted of a datatype as represented
in the file (function)

<DT><B>extra_state </B><DD>pointer to extra state that is passed to each of the
three functions
</DL>
<P>
<H2>Notes</H2>
This function allows the user to provide routines to convert data from
an external representation, used within a file, and the native representation,
used within the CPU.  There is one predefined data representation,
<TT>external32</TT>.  Please consult the MPI-2 standard for details on this
function.
<P>
<H2>Notes for Fortran</H2>
All MPI routines in Fortran (except for <TT>MPI_WTIME</TT> and <TT>MPI_WTICK</TT>) have
an additional argument <TT>ierr</TT> at the end of the argument list.  <TT>ierr
</TT>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
<TT>call</TT> statement.
<P>
All MPI objects (e.g., <TT>MPI_Datatype</TT>, <TT>MPI_Comm</TT>) are of type <TT>INTEGER
</TT>in Fortran.
<P>
<P><B>Location:</B>register_datarep.c<P>
</BODY></HTML>