Skip to content
GitLab
Menu
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
dee26e62
Commit
dee26e62
authored
Feb 23, 2016
by
Matthieu Schaller
Browse files
Fixed segfault in MPI mode.
parent
4511d85d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
dee26e62
...
...
@@ -557,8 +557,9 @@ void cell_init_parts(struct cell *c, void *data) {
struct
part
*
p
=
c
->
parts
;
struct
xpart
*
xp
=
c
->
xparts
;
const
int
count
=
c
->
count
;
for
(
int
i
=
0
;
i
<
c
->
count
;
++
i
)
{
for
(
int
i
=
0
;
i
<
count
;
++
i
)
{
p
[
i
].
ti_begin
=
0
;
p
[
i
].
ti_end
=
0
;
xp
[
i
].
v_full
[
0
]
=
p
[
i
].
v
[
0
];
...
...
src/engine.c
View file @
dee26e62
...
...
@@ -1720,14 +1720,14 @@ void engine_init_particles(struct engine *e) {
struct
space
*
s
=
e
->
s
;
message
(
"Initialising particles"
);
engine_prepare
(
e
);
if
(
e
->
nodeID
==
0
)
message
(
"Initialising particles"
);
/* Make sure all particles are ready to go */
/* i.e. clean-up any stupid state in the ICs */
space_map_cells_pre
(
s
,
1
,
cell_init_parts
,
NULL
);
engine_prepare
(
e
);
engine_marktasks
(
e
);
// printParticle(e->s->parts, 1000, e->s->nr_parts);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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