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
ae123a6e
Commit
ae123a6e
authored
Nov 02, 2016
by
Matthieu Schaller
Browse files
Code formatting
parent
06b50e49
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
ae123a6e
...
...
@@ -2246,7 +2246,7 @@ void engine_prepare(struct engine *e, int nodrift) {
TIMER_TOC
(
timer_prepare
);
if
(
e
->
verbose
)
message
(
"took %.3f %s (including
marktask
, rebuild and reweight)."
,
message
(
"took %.3f %s (including
drift all
, rebuild and reweight)."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
}
...
...
src/statistics.c
View file @
ae123a6e
...
...
@@ -157,7 +157,7 @@ void stats_collect_part_mapper(void *map_data, int nr_parts, void *extra_data) {
stats
.
E_pot_self
+=
0
.
f
;
if
(
gp
!=
NULL
)
stats
.
E_pot_ext
+=
m
*
external_gravity_get_potential_energy
(
potential
,
phys_const
,
gp
);
m
*
external_gravity_get_potential_energy
(
potential
,
phys_const
,
gp
);
stats
.
E_int
+=
m
*
hydro_get_internal_energy
(
p
,
dt
);
stats
.
E_rad
+=
cooling_get_radiated_energy
(
xp
);
...
...
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