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
ced55896
Commit
ced55896
authored
Apr 18, 2016
by
Matthieu Schaller
Browse files
Initialise the entropy only once.
parent
254cc1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
ced55896
...
...
@@ -1042,7 +1042,7 @@ void engine_exchange_strays(struct engine *e, size_t offset_parts,
count_gparts
+=
p
->
nr_gparts_in
;
}
}
/* Wait for all the sends to have finished too. */
if
(
nr_out
>
0
)
if
(
MPI_Waitall
(
3
*
e
->
nr_proxies
,
reqs_out
,
MPI_STATUSES_IGNORE
)
!=
...
...
@@ -1953,7 +1953,7 @@ void engine_init_particles(struct engine *e) {
TIMER_TOC
(
timer_runners
);
/* Apply some conversions (e.g. internal energy -> entropy) */
space_map_cells_pre
(
s
,
1
,
cell_convert_hydro
,
NULL
);
space_map_cells_pre
(
s
,
0
,
cell_convert_hydro
,
NULL
);
/* Ready to go */
e
->
step
=
-
1
;
...
...
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