Edit

Share via


MPI_Type_create_f90_real function

Returns a predefined type that matches the specified range.

Syntax

int MPIAPI MPI_Type_create_f90_real(
        int          p,
        int          r,
  _Out_ MPI_Datatype *newtype
);

Parameters

  • p
    Number of decimal digits in mantissa.

  • r
    Decimal exponent range desired.

  • newtype [out]
    A predefine MPI Datatype that matches the range.

Return value

Returns MPI_SUCCESS on success. Otherwise, the return value is an error code.

In Fortran, the return value is stored in the IERROR parameter.

Fortran

    MPI_TYPE_CREATE_F90_REAL(P, R, NEWTYPE, IERROR)
        INTEGER P, R, NEWTYPE, IERROR

Remark

This function returns a predefined MPI datatype that matches a REAL variable of KIND selected_real_kind(p, r). In the model described above it returns a handle for the element D(p, r). Either p or r may be omitted from calls to selected_real_kind(p, r) (but not both). Analogously, either p or r may be set to MPI_UNDEFINED. In communication, an MPI datatype A returned by MPI_Type_create_f90_real matches a datatype B if and only if B was returned by MPI_Type_create_f90_real called with the same values for p and r or B is a duplicate of such a datatype.

If there is no corresponding type for the specified range, the call is erroneous. This implementation sets newtype to MPI_DATATYPE_NULL and returns an error of class MPI_ERR_ARG.

Requirements

Product

HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities

Header

Mpi.h; Mpif.h

Library

Msmpi.lib

DLL

Msmpi.dll

See also

MPI Miscellaneous Functions