⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpi_type_create_f90_real.3

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\"Copyright (c) 1996 Thinking Machines.TH MPI_Type_create_f90_real 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME.nf\fBMPI_Type_create_f90_real\fP \- Returns a bounded MPI real datatype.SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Type_create_f90_real(int \fIp\fP, int \fIr\fP, MPI_Datatype *\fInewtype\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_TYPE_CREATE_F90_REAL (\fIP, R, NEWTYPE, IERROR\fP)	INTEGER	\fIP, R, NEWTYPE, IERROR\fP.SH C++ Syntax.nf#include <mpi.h>static MPI::Datatype MPI::Datatype::Create_f90_real(int \fIp\fP, int \fIr\fP).SH INPUT PARAMETERS.ft R.TP 1ipPrecision, in decimal digits (integer)..TP 1irDecimal exponent range (integer)..SH OUTPUT PARAMETERS.ft R.TP 1inewtypeNew data type (handle)..TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RThis function provides a way to declare KIND-parameterized REAL MPIdatatypes. The arguments are interpreted in a similar fashion to theF90 function SELECTED_REAL_KIND. The parameters \fIp\fP and \fIr\fPmust be scalar integers. The argument \fIp\fP represents the requiredlevel of numerical precision, in decimal digits. The \fIr\fP parameterindicates the range of exponents desired: the returned datatype willhave at least one exponent between \+\fIr\fP and \-\fIr\fP (inclusive)..spEither \fIp\fP or \fIr\fP, but not both, may be omitted from calls toSELECTED_REAL_KIND. Similarly, either argument toMPI_Type_create_f90_real may be set to MPI_UNDEFINED..SH NOTES.ft RIt is erroneous to supply values for \fIp\fP and \fIr\fP not supported bythe compiler..spThe Fortran function SELECTED_REAL_KIND maps a large number of(\fIp,r\fP) pairs to a much smaller number of KIND parameterssupported by the compiler. KIND parameters are not specified by thelanguage and are not portable. From the point of view of the language,variables of the same base type and KIND parameter are equivalent,even if their KIND parameters were generated by different (\fIp,r\fP)arguments to SELECTED_REAL_KIND. However, to help facilitateinteroperability in a heterogeneous environment, equivalency is morestrictly defined for datatypes returned byMPI_Type_create_f90_real. Two MPI datatypes, each generated by thisfunction, will match if and only if they have identical values forboth \fIp\fP and \fIr\fP..spThe interaction between the datatypes returned by this function andthe external32 data representation \- used by MPI_Pack_external,MPI_Unpack_external and many MPI_File functions \- is subtle. Theexternal32 representation of returned datatypes is as follows..sp.nf	if (\fIp\fP > 33) and/or (\fIr\fP > 4931):		external32 size = n/a (undefined)	else if (\fIp\fP > 15) and/or (\fIr\fP > 307):		external32 size = 16	else if (\fIp\fP > 6) and/or (\fIr\fP > 37):		external32 size = 8	else:		external32 size = 4.fi.spIf the external32 representation of a datatype is undefined, so arethe results of using that datatype in operations that require theexternal32 format. Care should be taken not to use incompatibledatatypes indirectly, e.g., as part of another datatype or through aduplicated datatype, in these functions..spIf a variable is declared specifying a nondefault KIND value that wasnot obtained with SELECTED_REAL_KIND (i.e., \fIp\fP and/or \fIr\fP areunknown), the only way to obtain a matching MPI datatype is to use thefunctions MPI_Sizeof and MPI_Type_match_size..SH ERRORS.ft RAlmost all MPI routines return an error value; C routines asthe value of the function and Fortran routines in the last argument. C++functions do not return errors. If the default error handler is set toMPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanismwill be used to throw an MPI:Exception object..spBefore the error value is returned, the current MPI error handler iscalled. By default, this error handler aborts the MPI job, except forI/O function errors. The error handler may be changed withMPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURNmay be used to cause error values to be returned. Note that MPI does notguarantee that an MPI program can continue past an error. .spSee the MPI man page for a full list of MPI error codes..SH SEE ALSO.ft R.nfMPI_Pack_externalMPI_SizeofMPI_Type_match_sizeMPI_Unpack_externalSELECTED_REAL_KIND' @(#)MPI_Type_create_f90_real.3 1.5 06/03/09

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -