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
14cccffc
Commit
14cccffc
authored
Mar 09, 2018
by
Matthieu Schaller
Browse files
Do not dump hydro accelerations in snapshots.
parent
1b2d1f14
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/hydro/Default/hydro_io.h
View file @
14cccffc
...
...
@@ -77,7 +77,7 @@ void convert_part_pos(const struct engine* e, const struct part* p,
void
hydro_write_particles
(
struct
part
*
parts
,
struct
io_props
*
list
,
int
*
num_fields
)
{
*
num_fields
=
8
;
*
num_fields
=
7
;
/* List what we want to write */
list
[
0
]
=
io_make_output_field_convert_part
(
...
...
@@ -92,9 +92,7 @@ void hydro_write_particles(struct part* parts, struct io_props* list,
UNIT_CONV_ENERGY_PER_UNIT_MASS
,
parts
,
u
);
list
[
5
]
=
io_make_output_field
(
"ParticleIDs"
,
ULONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
parts
,
id
);
list
[
6
]
=
io_make_output_field
(
"Acceleration"
,
FLOAT
,
3
,
UNIT_CONV_ACCELERATION
,
parts
,
a_hydro
);
list
[
7
]
=
list
[
6
]
=
io_make_output_field
(
"Density"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho
);
}
...
...
src/hydro/Gadget2/hydro_io.h
View file @
14cccffc
...
...
@@ -89,7 +89,7 @@ void convert_part_pos(const struct engine* e, const struct part* p,
void
hydro_write_particles
(
const
struct
part
*
parts
,
struct
io_props
*
list
,
int
*
num_fields
)
{
*
num_fields
=
10
;
*
num_fields
=
9
;
/* List what we want to write */
list
[
0
]
=
io_make_output_field_convert_part
(
...
...
@@ -104,14 +104,12 @@ void hydro_write_particles(const struct part* parts, struct io_props* list,
"Entropy"
,
FLOAT
,
1
,
UNIT_CONV_ENTROPY_PER_UNIT_MASS
,
parts
,
entropy
);
list
[
5
]
=
io_make_output_field
(
"ParticleIDs"
,
ULONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
parts
,
id
);
list
[
6
]
=
io_make_output_field
(
"Acceleration"
,
FLOAT
,
3
,
UNIT_CONV_ACCELERATION
,
parts
,
a_hydro
);
list
[
7
]
=
list
[
6
]
=
io_make_output_field
(
"Density"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho
);
list
[
8
]
=
io_make_output_field_convert_part
(
"InternalEnergy"
,
FLOAT
,
1
,
list
[
7
]
=
io_make_output_field_convert_part
(
"InternalEnergy"
,
FLOAT
,
1
,
UNIT_CONV_ENERGY_PER_UNIT_MASS
,
parts
,
convert_u
);
list
[
9
]
=
io_make_output_field_convert_part
(
list
[
8
]
=
io_make_output_field_convert_part
(
"Pressure"
,
FLOAT
,
1
,
UNIT_CONV_PRESSURE
,
parts
,
convert_P
);
#ifdef DEBUG_INTERACTIONS_SPH
...
...
src/hydro/Minimal/hydro_io.h
View file @
14cccffc
...
...
@@ -103,7 +103,7 @@ void convert_part_pos(const struct engine* e, const struct part* p,
void
hydro_write_particles
(
struct
part
*
parts
,
struct
io_props
*
list
,
int
*
num_fields
)
{
*
num_fields
=
10
;
*
num_fields
=
9
;
/* List what we want to write */
list
[
0
]
=
io_make_output_field_convert_part
(
...
...
@@ -118,13 +118,11 @@ void hydro_write_particles(struct part* parts, struct io_props* list,
UNIT_CONV_ENERGY_PER_UNIT_MASS
,
parts
,
u
);
list
[
5
]
=
io_make_output_field
(
"ParticleIDs"
,
ULONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
parts
,
id
);
list
[
6
]
=
io_make_output_field
(
"Acceleration"
,
FLOAT
,
3
,
UNIT_CONV_ACCELERATION
,
parts
,
a_hydro
);
list
[
7
]
=
list
[
6
]
=
io_make_output_field
(
"Density"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho
);
list
[
8
]
=
io_make_output_field_convert_part
(
list
[
7
]
=
io_make_output_field_convert_part
(
"Entropy"
,
FLOAT
,
1
,
UNIT_CONV_ENTROPY_PER_UNIT_MASS
,
parts
,
convert_S
);
list
[
9
]
=
io_make_output_field_convert_part
(
list
[
8
]
=
io_make_output_field_convert_part
(
"Pressure"
,
FLOAT
,
1
,
UNIT_CONV_PRESSURE
,
parts
,
convert_P
);
}
...
...
src/hydro/PressureEntropy/hydro_io.h
View file @
14cccffc
...
...
@@ -101,7 +101,7 @@ void convert_part_pos(const struct engine* e, const struct part* p,
void
hydro_write_particles
(
struct
part
*
parts
,
struct
io_props
*
list
,
int
*
num_fields
)
{
*
num_fields
=
1
1
;
*
num_fields
=
1
0
;
/* List what we want to write */
list
[
0
]
=
io_make_output_field_convert_part
(
...
...
@@ -116,17 +116,15 @@ void hydro_write_particles(struct part* parts, struct io_props* list,
"Entropy"
,
FLOAT
,
1
,
UNIT_CONV_ENTROPY_PER_UNIT_MASS
,
parts
,
entropy
);
list
[
5
]
=
io_make_output_field
(
"ParticleIDs"
,
ULONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
parts
,
id
);
list
[
6
]
=
io_make_output_field
(
"Acceleration"
,
FLOAT
,
3
,
UNIT_CONV_ACCELERATION
,
parts
,
a_hydro
);
list
[
7
]
=
list
[
6
]
=
io_make_output_field
(
"Density"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho
);
list
[
8
]
=
io_make_output_field_convert_part
(
"InternalEnergy"
,
FLOAT
,
1
,
list
[
7
]
=
io_make_output_field_convert_part
(
"InternalEnergy"
,
FLOAT
,
1
,
UNIT_CONV_ENERGY_PER_UNIT_MASS
,
parts
,
convert_u
);
list
[
9
]
=
io_make_output_field_convert_part
(
list
[
8
]
=
io_make_output_field_convert_part
(
"Pressure"
,
FLOAT
,
1
,
UNIT_CONV_PRESSURE
,
parts
,
convert_P
);
list
[
10
]
=
io_make_output_field
(
"WeightedDensity"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho_bar
);
list
[
9
]
=
io_make_output_field
(
"WeightedDensity"
,
FLOAT
,
1
,
UNIT_CONV_DENSITY
,
parts
,
rho_bar
);
}
/**
...
...
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