Commit 60906bb5 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Initialize Ndm in i/o routines to prevent compiler warning.

parent 48264d40
......@@ -389,7 +389,7 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units,
long long N_total[NUM_PARTICLE_TYPES] = {0};
long long offset[NUM_PARTICLE_TYPES] = {0};
int dimension = 3; /* Assume 3D if nothing is specified */
size_t Ndm;
size_t Ndm = 0;
/* Open file */
/* message("Opening file '%s' as IC.", fileName); */
......
......@@ -440,7 +440,7 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units,
long long N_total[NUM_PARTICLE_TYPES] = {0};
long long offset[NUM_PARTICLE_TYPES] = {0};
int dimension = 3; /* Assume 3D if nothing is specified */
size_t Ndm;
size_t Ndm = 0;
struct UnitSystem* ic_units = malloc(sizeof(struct UnitSystem));
/* First read some information about the content */
......
......@@ -350,7 +350,7 @@ void read_ic_single(char* fileName, const struct UnitSystem* internal_units,
int numParticles_highWord[NUM_PARTICLE_TYPES] = {0};
size_t N[NUM_PARTICLE_TYPES] = {0};
int dimension = 3; /* Assume 3D if nothing is specified */
size_t Ndm;
size_t Ndm = 0;
/* Open file */
/* message("Opening file '%s' as IC.", fileName); */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment