Initialize the extent before using it.
This commit was SVN r10309.
Этот коммит содержится в:
родитель
00e611784b
Коммит
57bdb323b0
@ -66,6 +66,9 @@ int MPI_Type_create_subarray(int ndims,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ompi_ddt_type_extent( oldtype, &extent );
|
||||||
|
|
||||||
/* If the ndims is zero then return the NULL datatype */
|
/* If the ndims is zero then return the NULL datatype */
|
||||||
if( ndims < 2 ) {
|
if( ndims < 2 ) {
|
||||||
if( 0 == ndims ) {
|
if( 0 == ndims ) {
|
||||||
@ -87,8 +90,6 @@ int MPI_Type_create_subarray(int ndims,
|
|||||||
end_loop = ndims - 1;
|
end_loop = ndims - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ompi_ddt_type_extent( oldtype, &extent );
|
|
||||||
|
|
||||||
/* As we know that the ndims is at least 1 we can start by creating the first dimension data
|
/* As we know that the ndims is at least 1 we can start by creating the first dimension data
|
||||||
* outside the loop, such that we dont have to create a duplicate of the oldtype just to be able
|
* outside the loop, such that we dont have to create a duplicate of the oldtype just to be able
|
||||||
* to free it.
|
* to free it.
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user