Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
60906bb5
Commit
60906bb5
authored
Feb 15, 2017
by
Matthieu Schaller
Browse files
Initialize Ndm in i/o routines to prevent compiler warning.
parent
48264d40
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
60906bb5
...
...
@@ -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); */
...
...
src/serial_io.c
View file @
60906bb5
...
...
@@ -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 */
...
...
src/single_io.c
View file @
60906bb5
...
...
@@ -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); */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment