Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
208261e9
Commit
208261e9
authored
3 months ago
by
Darwin
Committed by
Matthieu Schaller
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix GEAR sink number of outputs
parent
d09d46b2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2127
Fix GEAR sink number of outputs
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sink/GEAR/sink_io.h
+3
-3
3 additions, 3 deletions
src/sink/GEAR/sink_io.h
with
3 additions
and
3 deletions
src/sink/GEAR/sink_io.h
+
3
−
3
View file @
208261e9
...
...
@@ -127,7 +127,7 @@ INLINE static void sink_write_particles(const struct sink* sinks,
int
with_cosmology
)
{
/* Say how much we want to write */
*
num_fields
=
1
0
;
*
num_fields
=
1
1
;
/* List what we want to write */
list
[
0
]
=
io_make_output_field_convert_sink
(
...
...
@@ -179,12 +179,12 @@ INLINE static void sink_write_particles(const struct sink* sinks,
"Physical swallowed angular momentum of the particles"
);
if
(
with_cosmology
)
{
list
[
9
]
=
io_make_physical_output_field
(
list
[
10
]
=
io_make_physical_output_field
(
"BirthScaleFactors"
,
FLOAT
,
1
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sinks
,
birth_scale_factor
,
/*can convert to comoving=*/
0
,
"Scale-factors at which the sinks were born"
);
}
else
{
list
[
9
]
=
list
[
10
]
=
io_make_output_field
(
"BirthTimes"
,
FLOAT
,
1
,
UNIT_CONV_TIME
,
0
.
f
,
sinks
,
birth_time
,
"Times at which the sinks were born"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment