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
d58bef3c
Commit
d58bef3c
authored
Sep 15, 2016
by
Matthieu Schaller
Browse files
Code formatting
parent
4ecbac7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
d58bef3c
...
...
@@ -487,8 +487,9 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units,
}
/* Convert the dimensions of the box */
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
/* Allocate memory to store SPH particles */
*
Ngas
=
N
[
0
];
...
...
src/serial_io.c
View file @
d58bef3c
...
...
@@ -529,8 +529,9 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units,
}
/* Convert the dimensions of the box */
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
/* Now need to broadcast that information to all ranks. */
MPI_Bcast
(
flag_entropy
,
1
,
MPI_INT
,
0
,
comm
);
...
...
src/single_io.c
View file @
d58bef3c
...
...
@@ -434,8 +434,9 @@ void read_ic_single(char* fileName, const struct UnitSystem* internal_units,
}
/* Convert the dimensions of the box */
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
for
(
int
j
=
0
;
j
<
3
;
j
++
)
dim
[
j
]
*=
units_conversion_factor
(
ic_units
,
internal_units
,
UNIT_CONV_LENGTH
);
/* Allocate memory to store SPH particles */
*
Ngas
=
N
[
0
];
...
...
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