1
1

Initialize the extent before using it.

This commit was SVN r10309.
Этот коммит содержится в:
George Bosilca 2006-06-12 19:38:52 +00:00
родитель 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( ndims < 2 ) {
if( 0 == ndims ) {
@ -87,8 +90,6 @@ int MPI_Type_create_subarray(int ndims,
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
* outside the loop, such that we dont have to create a duplicate of the oldtype just to be able
* to free it.