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
4bf186d8
Commit
4bf186d8
authored
1 year ago
by
Mladen Ivkovic
Browse files
Options
Downloads
Patches
Plain Diff
corrected number of items to write in tracers_io.h
parent
4a81a392
No related branches found
No related tags found
2 merge requests
!1766
added read Vz factor from the yml files.
,
!1761
Fix eagle tracers output
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tracers/EAGLE/tracers_io.h
+7
-7
7 additions, 7 deletions
src/tracers/EAGLE/tracers_io.h
with
7 additions
and
7 deletions
src/tracers/EAGLE/tracers_io.h
+
7
−
7
View file @
4bf186d8
...
...
@@ -337,14 +337,14 @@ __attribute__((always_inline)) INLINE static int tracers_write_sparticles(
"particle."
);
if
(
with_jets
)
{
list
[
1
4
]
=
io_make_output_field
(
list
[
1
1
]
=
io_make_output_field
(
"KickedByJetFeedback"
,
CHAR
,
1
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
tracers_data
.
hit_by_jet_feedback
,
"Flags the particles that have been directly kicked by"
"an AGN jet feedback event at some point in the past. "
"If > 0, contains the number of individual events."
);
list
[
1
5
]
=
io_make_output_field
(
"EnergiesReceivedFromJetFeedback"
,
FLOAT
,
1
,
list
[
1
2
]
=
io_make_output_field
(
"EnergiesReceivedFromJetFeedback"
,
FLOAT
,
1
,
UNIT_CONV_ENERGY
,
0
.
f
,
sparts
,
tracers_data
.
jet_feedback_energy
,
"Total amount of kinetic energy from AGN "
...
...
@@ -354,7 +354,7 @@ __attribute__((always_inline)) INLINE static int tracers_write_sparticles(
if
(
with_cosmology
)
{
list
[
1
6
]
=
io_make_output_field
(
list
[
1
3
]
=
io_make_output_field
(
"LastAGNJetFeedbackScaleFactors"
,
FLOAT
,
1
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
tracers_data
.
last_AGN_jet_feedback_scale_factor
,
"Scale-factors at which the particles were last hit by jet "
...
...
@@ -363,7 +363,7 @@ __attribute__((always_inline)) INLINE static int tracers_write_sparticles(
}
else
{
list
[
1
6
]
=
io_make_output_field
(
list
[
1
4
]
=
io_make_output_field
(
"LastAGNJetFeedbackTimes"
,
FLOAT
,
1
,
UNIT_CONV_TIME
,
0
.
f
,
sparts
,
tracers_data
.
last_AGN_jet_feedback_time
,
"Times at which the particles were last hit by jet"
...
...
@@ -371,14 +371,14 @@ __attribute__((always_inline)) INLINE static int tracers_write_sparticles(
"-1 if a particle has never been hit by feedback"
);
}
list
[
1
7
]
=
io_make_output_field
(
"LastAGNJetKickVelocities"
,
FLOAT
,
1
,
list
[
1
5
]
=
io_make_output_field
(
"LastAGNJetKickVelocities"
,
FLOAT
,
1
,
UNIT_CONV_VELOCITY
,
0
.
f
,
sparts
,
tracers_data
.
last_jet_kick_velocity
,
"Kick velocity at last AGN jet event."
);
return
1
8
;
return
1
6
;
}
else
{
return
1
5
;
return
1
1
;
}
}
...
...
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