Silence warning
cmr=v1.7.5:reviewer=ompi-gk1.7 This commit was SVN r30721.
Этот коммит содержится в:
родитель
f7abaee8c4
Коммит
b787e2054f
@ -11,6 +11,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -214,7 +215,6 @@ assignnodes(int ndim, int nfactor, int *pfacts, int **pdims)
|
|||||||
static int
|
static int
|
||||||
getfactors(int num, int *nfactors, int **factors) {
|
getfactors(int num, int *nfactors, int **factors) {
|
||||||
int size;
|
int size;
|
||||||
int n;
|
|
||||||
int d;
|
int d;
|
||||||
int i;
|
int i;
|
||||||
int sqrtnum;
|
int sqrtnum;
|
||||||
@ -225,7 +225,6 @@ getfactors(int num, int *nfactors, int **factors) {
|
|||||||
return MPI_SUCCESS;
|
return MPI_SUCCESS;
|
||||||
}
|
}
|
||||||
/* Allocate the array of prime factors which cannot exceed log_2(num) entries */
|
/* Allocate the array of prime factors which cannot exceed log_2(num) entries */
|
||||||
n = num;
|
|
||||||
sqrtnum = ceil(sqrt(num));
|
sqrtnum = ceil(sqrt(num));
|
||||||
size = ceil(log(num) / log(2));
|
size = ceil(log(num) / log(2));
|
||||||
*factors = (int *) malloc((unsigned) size * sizeof(int));
|
*factors = (int *) malloc((unsigned) size * sizeof(int));
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user