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
a0e20aed
Commit
a0e20aed
authored
Sep 20, 2018
by
Matthieu Schaller
Browse files
Code formatting
parent
4e7f5eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hydro/PressureEnergy/hydro_io.h
View file @
a0e20aed
...
...
@@ -137,8 +137,8 @@ INLINE static void convert_part_vel(const struct engine* e,
}
INLINE
static
void
convert_part_potential
(
const
struct
engine
*
e
,
const
struct
part
*
p
,
const
struct
xpart
*
xp
,
float
*
ret
)
{
const
struct
part
*
p
,
const
struct
xpart
*
xp
,
float
*
ret
)
{
if
(
p
->
gpart
!=
NULL
)
ret
[
0
]
=
gravity_get_comoving_potential
(
p
->
gpart
);
else
...
...
@@ -182,8 +182,8 @@ INLINE static void hydro_write_particles(const struct part* parts,
UNIT_CONV_ENTROPY_PER_UNIT_MASS
,
parts
,
xparts
,
convert_S
);
list
[
9
]
=
io_make_output_field_convert_part
(
"Potential"
,
FLOAT
,
1
,
UNIT_CONV_POTENTIAL
,
parts
,
xparts
,
convert_part_potential
);
UNIT_CONV_POTENTIAL
,
parts
,
xparts
,
convert_part_potential
);
}
/**
...
...
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