[petsc-dev] usage of Malloc2 at VecScatterCopy_MPI_ToAll

Lisandro Dalcin dalcinl at gmail.com
Fri Jul 9 19:22:41 CDT 2010

While building with nvcc, I looked at this warning:

libfast in: /usr/local/petsc/dev/src/vec/vec/utils
vscat.c(322): warning: variable "sto" is used before its value is set

Do we really need to use Malloc2 in such line? Perhaps we should
actually use Malloc2 for sto->count and sto->displx ?

Lisandro Dalcin
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169

More information about the petsc-dev mailing list