Skip to content

Commit 9586e98

Browse files
authored
Merge pull request #8092 from markalle/maintain_extent_markers
make Type_create_resized set FLAG_USER_UB
2 parents 32dc9f6 + bca3c0e commit 9586e98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opal/datatype/opal_datatype_resize.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
77
* Copyright (c) 2015-2017 Research Organization for Information Science
88
* and Technology (RIST). All rights reserved.
9+
* Copyright (c) 2020 IBM Corporation. All rights reserved.
910
* $COPYRIGHT$
1011
*
1112
* Additional copyrights may follow
@@ -24,6 +25,8 @@ int32_t opal_datatype_resize( opal_datatype_t* type, ptrdiff_t lb, ptrdiff_t ext
2425
type->ub = lb + extent;
2526

2627
type->flags &= ~OPAL_DATATYPE_FLAG_NO_GAPS;
28+
type->flags |= OPAL_DATATYPE_FLAG_USER_LB;
29+
type->flags |= OPAL_DATATYPE_FLAG_USER_UB;
2730
if( (extent == (ptrdiff_t)type->size) &&
2831
(type->flags & OPAL_DATATYPE_FLAG_CONTIGUOUS) ) {
2932
type->flags |= OPAL_DATATYPE_FLAG_NO_GAPS;

0 commit comments

Comments
 (0)