Skip to content

Commit cce89e8

Browse files
jsquyresdevreal
authored andcommitted
ompi/attribute/attribute.c: update giant comment
Correct a few minor mistakes in the large comment at the top of ompi/attribute/attribute.c from when 72cfbb6 added several new cases to attribute handling. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent fdc7108 commit cce89e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ompi/attribute/attribute.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@
129129
* ompi_set_attr_int(..., foo, ...)
130130
*
131131
* 4. C reads the attribute value. The value returned is a pointer
132-
* that points to an int that has a value
133-
* of 7.
132+
* that points to an int that has a value of 7.
134133
*
135134
* Example: int *ret;
136135
* MPI_Attr_get(..., &ret);
137136
* -> *ret will equal 7.
138137
*
139-
* 5. Fortran MPI-1 reads the attribute value. This is the unity
140-
* case; the same value is returned.
138+
* 5. Fortran MPI-1 reads the attribute value. The C int value is
139+
* cast to a fortran INTEGER (i.e., MPI_Fint) -- potentially being
140+
* truncated if sizeof(int) > sizeof(INTEGER).
141141
*
142142
* Example: INTEGER ret
143143
* CALL MPI_ATTR_GET(..., ret, ierr)
@@ -163,7 +163,7 @@
163163
* that points to an INTEGER (i.e., an MPI_Fint) that has a value
164164
* of 7.
165165
* --> NOTE: The external MPI interface does not distinguish between
166-
* this case and case 7. It is the programer's responsibility
166+
* this case and case 10. It is the programer's responsibility
167167
* to code accordingly.
168168
*
169169
* Example: MPI_Fint *ret;
@@ -202,7 +202,7 @@
202202
* that points to an INTEGER(KIND=MPI_ADDRESS_KIND) (i.e., a void*)
203203
* that has a value of 12.
204204
* --> NOTE: The external MPI interface does not distinguish between
205-
* this case and case 4. It is the programer's responsibility
205+
* this case and case 7. It is the programer's responsibility
206206
* to code accordingly.
207207
*
208208
* Example A: MPI_Aint *ret;

0 commit comments

Comments
 (0)