Blame www/www3/MPI_Register_datarep.html

Packit Service c5cf8c
Packit Service c5cf8c
<HTML>
Packit Service c5cf8c
<HEAD>
Packit Service c5cf8c
<META NAME="GENERATOR" CONTENT="DOCTEXT">
Packit Service c5cf8c
<TITLE>MPI_Register_datarep</TITLE>
Packit Service c5cf8c
</HEAD>
Packit Service c5cf8c
<BODY BGCOLOR="FFFFFF">
Packit Service c5cf8c

MPI_Register_datarep

Packit Service c5cf8c
Register functions for user-defined data representations 
Packit Service c5cf8c

Synopsis

Packit Service c5cf8c
Packit Service c5cf8c
int MPI_Register_datarep(ROMIO_CONST char *datarep,
Packit Service c5cf8c
                         MPI_Datarep_conversion_function * read_conversion_fn,
Packit Service c5cf8c
                         MPI_Datarep_conversion_function * write_conversion_fn,
Packit Service c5cf8c
                         MPI_Datarep_extent_function * dtype_file_extent_fn, void *extra_state)
Packit Service c5cf8c
Packit Service c5cf8c

Input Parameters

Packit Service c5cf8c
Packit Service c5cf8c
datarep
data representation name (string)
Packit Service c5cf8c
Packit Service c5cf8c
read_conversion_fn
function invoked to convert from file representation to
Packit Service c5cf8c
native representation (function)
Packit Service c5cf8c
Packit Service c5cf8c
write_conversion_fn
function invoked to convert from native representation to
Packit Service c5cf8c
file representation (function)
Packit Service c5cf8c
Packit Service c5cf8c
dtype_file_extent_fn
function invoked to get the exted of a datatype as represented
Packit Service c5cf8c
in the file (function)
Packit Service c5cf8c
Packit Service c5cf8c
extra_state
pointer to extra state that is passed to each of the
Packit Service c5cf8c
three functions
Packit Service c5cf8c
Packit Service c5cf8c

Packit Service c5cf8c

Notes

Packit Service c5cf8c
This function allows the user to provide routines to convert data from
Packit Service c5cf8c
an external representation, used within a file, and the native representation,
Packit Service c5cf8c
used within the CPU.  There is one predefined data representation,
Packit Service c5cf8c
<tt>external32</tt>.  Please consult the MPI-2 standard for details on this
Packit Service c5cf8c
function.
Packit Service c5cf8c

Packit Service c5cf8c

Notes for Fortran

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

Packit Service c5cf8c
All MPI objects (e.g., <tt>MPI_Datatype</tt>, <tt>MPI_Comm</tt>) are of type <tt>INTEGER
Packit Service c5cf8c
</tt>in Fortran.
Packit Service c5cf8c

Packit Service c5cf8c
</BODY></HTML>