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
20449ff4
Commit
20449ff4
authored
Mar 25, 2016
by
Matthieu Schaller
Browse files
Code formatting
parent
7678445f
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
20449ff4
...
...
@@ -363,7 +363,7 @@ int main(int argc, char *argv[]) {
#if defined(WITH_MPI)
#if defined(HAVE_PARALLEL_HDF5)
read_ic_parallel
(
ICfileName
,
dim
,
&
parts
,
&
gparts
,
&
Ngas
,
&
Ngpart
,
&
periodic
,
myrank
,
nr_nodes
,
MPI_COMM_WORLD
,
MPI_INFO_NULL
);
myrank
,
nr_nodes
,
MPI_COMM_WORLD
,
MPI_INFO_NULL
);
#else
read_ic_serial
(
ICfileName
,
dim
,
&
parts
,
&
gparts
,
&
Ngas
,
&
Ngpart
,
&
periodic
,
myrank
,
nr_nodes
,
MPI_COMM_WORLD
,
MPI_INFO_NULL
);
...
...
@@ -397,8 +397,7 @@ int main(int argc, char *argv[]) {
if
(
!
with_gravity
)
{
free
(
gparts
);
gparts
=
NULL
;
for
(
size_t
k
=
0
;
k
<
Ngas
;
++
k
)
parts
[
k
].
gpart
=
NULL
;
for
(
size_t
k
=
0
;
k
<
Ngas
;
++
k
)
parts
[
k
].
gpart
=
NULL
;
Ngpart
=
0
;
#if defined(WITH_MPI)
N_long
[
0
]
=
Ngas
;
...
...
src/cell.c
View file @
20449ff4
...
...
@@ -91,7 +91,7 @@ int cell_unpack(struct pcell *pc, struct cell *c, struct space *s) {
c
->
count
=
pc
->
count
;
c
->
gcount
=
pc
->
gcount
;
c
->
tag
=
pc
->
tag
;
/* Number of new cells created. */
int
count
=
1
;
...
...
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