Skip to content
Snippets Groups Projects
Commit b79864da authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Fix unitialised variable warning with GCC 7.1

parent bf867262
No related branches found
No related tags found
No related merge requests found
...@@ -144,8 +144,8 @@ void space_regrid(struct space *s, int verbose) { ...@@ -144,8 +144,8 @@ void space_regrid(struct space *s, int verbose) {
* global partition is recomputed and the particles redistributed. * global partition is recomputed and the particles redistributed.
* Be prepared to do that. */ * Be prepared to do that. */
#ifdef WITH_MPI #ifdef WITH_MPI
double oldwidth[3]; double oldwidth[3] = {0., 0., 0.};
double oldcdim[3]; double oldcdim[3] = {0., 0., 0.};
int *oldnodeIDs = NULL; int *oldnodeIDs = NULL;
if (cdim[0] < s->cdim[0] || cdim[1] < s->cdim[1] || cdim[2] < s->cdim[2]) { if (cdim[0] < s->cdim[0] || cdim[1] < s->cdim[1] || cdim[2] < s->cdim[2]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment