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
cd1618f7
Commit
cd1618f7
authored
Jul 31, 2019
by
Matthieu Schaller
Browse files
Update the i/o of the basic cooling models to use the new function signature.
parent
b02160ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/cooling/Compton/cooling_io.h
View file @
cd1618f7
...
...
@@ -64,9 +64,9 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
,
const
struct
cooling_function_data
*
cooling
)
{
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperature"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
parts
,
xparts
,
convert_part_T
);
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperatures"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
0
.
f
,
parts
,
x
parts
,
convert_part_T
,
"Temperatures of the gas particles"
);
return
1
;
}
...
...
src/cooling/const_du/cooling_io.h
View file @
cd1618f7
...
...
@@ -73,9 +73,9 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
,
const
struct
cooling_function_data
*
cooling
)
{
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperature"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
parts
,
xparts
,
convert_part_T
);
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperatures"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
0
.
f
,
parts
,
x
parts
,
convert_part_T
,
"Temperatures of the gas particles"
);
return
1
;
}
...
...
src/cooling/const_lambda/cooling_io.h
View file @
cd1618f7
...
...
@@ -72,12 +72,14 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const
struct
part
*
parts
,
const
struct
xpart
*
xparts
,
struct
io_props
*
list
,
const
struct
cooling_function_data
*
cooling
)
{
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperature"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
parts
,
xparts
,
convert_part_T
);
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperature"
,
FLOAT
,
0
.
f
,
1
,
UNIT_CONV_TEMPERATURE
,
parts
,
xparts
,
convert_part_T
,
"Temperatures of the gas particles"
);
list
[
1
]
=
io_make_output_field
(
"RadiatedEnergy"
,
FLOAT
,
1
,
UNIT_CONV_ENERGY
,
xparts
,
cooling_data
.
radiated_energy
);
list
[
1
]
=
io_make_output_field
(
"RadiatedEnergies"
,
FLOAT
,
1
,
UNIT_CONV_ENERGY
,
0
.
f
,
xparts
,
cooling_data
.
radiated_energy
,
"Thermal energies radiated by the cooling mechanism"
);
return
2
;
}
...
...
src/cooling/none/cooling_io.h
View file @
cd1618f7
...
...
@@ -63,7 +63,7 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const
struct
cooling_function_data
*
cooling
)
{
list
[
0
]
=
io_make_output_field_convert_part
(
"Temperature"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
0
.
f
,
parts
,
xparts
,
"Temperature
s
"
,
FLOAT
,
1
,
UNIT_CONV_TEMPERATURE
,
0
.
f
,
parts
,
xparts
,
convert_part_T
,
"Temperature of the particles"
);
return
1
;
}
...
...
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