You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:ref:`MPI_Info_create_env` - Creates a new info object with the same construction as :ref:`MPI_INFO_ENV` as created during :ref:`MPI_Init` or :ref:`MPI_Init_thread` when the same arguments
10
+
are used.
11
+
12
+
13
+
SYNTAX
14
+
------
15
+
16
+
17
+
C Syntax
18
+
^^^^^^^^
19
+
20
+
.. code-block:: c
21
+
22
+
#include <mpi.h>
23
+
24
+
int MPI_Info_create_env(int argc, char *argv[], MPI_Info *info)
25
+
26
+
27
+
Fortran Syntax
28
+
^^^^^^^^^^^^^^
29
+
30
+
.. code-block:: fortran
31
+
32
+
USE MPI
33
+
! or the older form: INCLUDE 'mpif.h'
34
+
MPI_INFO_CREATE_ENV(INFO, IERROR)
35
+
INTEGER INFO, IERROR
36
+
37
+
38
+
Fortran 2008 Syntax
39
+
^^^^^^^^^^^^^^^^^^^
40
+
41
+
.. code-block:: fortran
42
+
43
+
USE mpi_f08
44
+
MPI_Info_create_env(info, ierror)
45
+
TYPE(MPI_Info), INTENT(OUT) :: info
46
+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
47
+
48
+
49
+
OUTPUT PARAMETERS
50
+
-----------------
51
+
* ``info``: Info object created (handle).
52
+
* ``IERROR``: Fortran only: Error status (integer).
53
+
54
+
DESCRIPTION
55
+
-----------
56
+
57
+
:ref:`MPI_Info_create_env` creates a new info object with the same construction as :ref:`MPI_INFO_ENV` as created during :ref:`MPI_Init` or :ref:`MPI_Init_thread` when the same arguments are used.
58
+
59
+
Note
60
+
----
61
+
62
+
:ref:`MPI_Info_create_env` is one of the few functions that can be called
63
+
before :ref:`MPI_Init` and after :ref:`MPI_Finalize`.
64
+
65
+
ERRORS
66
+
------
67
+
68
+
Almost all MPI routines return an error value; C routines as the value
69
+
of the function and Fortran routines in the last argument.
70
+
71
+
Before the error value is returned, the current MPI error handler is
72
+
called. By default, this error handler aborts the MPI job, except for
73
+
I/O function errors. The error handler may be changed with
74
+
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
75
+
may be used to cause error values to be returned. Note that MPI does not
76
+
guarantee that an MPI program can continue past an error.
0 commit comments