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
ad84a21b
Commit
ad84a21b
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
SmoothedElementAbundances --> SmoothedElementMassFractions in EAGLE chemistry i/o.
parent
07f316e8
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!824
Add a description and a scale-factor exponent to each individual array written to the snapshots.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chemistry/EAGLE/chemistry_io.h
+4
-4
4 additions, 4 deletions
src/chemistry/EAGLE/chemistry_io.h
with
4 additions
and
4 deletions
src/chemistry/EAGLE/chemistry_io.h
+
4
−
4
View file @
ad84a21b
...
@@ -64,7 +64,7 @@ INLINE static int chemistry_write_particles(const struct part* parts,
...
@@ -64,7 +64,7 @@ INLINE static int chemistry_write_particles(const struct part* parts,
"Fractions of the particles' masses that are in the given element"
);
"Fractions of the particles' masses that are in the given element"
);
list
[
1
]
=
io_make_output_field
(
list
[
1
]
=
io_make_output_field
(
"SmoothedElement
Abundance
s"
,
FLOAT
,
chemistry_element_count
,
"SmoothedElement
MassFraction
s"
,
FLOAT
,
chemistry_element_count
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
parts
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
parts
,
chemistry_data
.
smoothed_metal_mass_fraction
,
chemistry_data
.
smoothed_metal_mass_fraction
,
"Smoothed fractions of the particles' masses that are "
"Smoothed fractions of the particles' masses that are "
...
@@ -146,7 +146,7 @@ INLINE static int chemistry_write_sparticles(const struct spart* sparts,
...
@@ -146,7 +146,7 @@ INLINE static int chemistry_write_sparticles(const struct spart* sparts,
"Fractions of the particles' masses that are in the given element"
);
"Fractions of the particles' masses that are in the given element"
);
list
[
1
]
=
io_make_output_field
(
list
[
1
]
=
io_make_output_field
(
"SmoothedElement
Abundance
s"
,
FLOAT
,
chemistry_element_count
,
"SmoothedElement
MassFraction
s"
,
FLOAT
,
chemistry_element_count
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
chemistry_data
.
smoothed_metal_mass_fraction
,
chemistry_data
.
smoothed_metal_mass_fraction
,
"Smoothed fractions of the particles' masses that are "
"Smoothed fractions of the particles' masses that are "
...
@@ -238,12 +238,12 @@ INLINE static int chemistry_write_bparticles(const struct bpart* bparts,
...
@@ -238,12 +238,12 @@ INLINE static int chemistry_write_bparticles(const struct bpart* bparts,
"Masses of the BH particles that have been produced by SNIa stars"
);
"Masses of the BH particles that have been produced by SNIa stars"
);
list
[
3
]
=
io_make_output_field
(
list
[
3
]
=
io_make_output_field
(
"MassFromSNII"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
bparts
,
"Mass
es
FromSNII"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
bparts
,
chemistry_data
.
mass_from_SNII
,
chemistry_data
.
mass_from_SNII
,
"Masses of the BH particles that have been produced by SNII stars"
);
"Masses of the BH particles that have been produced by SNII stars"
);
list
[
4
]
=
io_make_output_field
(
list
[
4
]
=
io_make_output_field
(
"MassFromAGB"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
bparts
,
"Mass
es
FromAGB"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
bparts
,
chemistry_data
.
mass_from_AGB
,
chemistry_data
.
mass_from_AGB
,
"Masses of the BH particles that have been produced by AGB stars"
);
"Masses of the BH particles that have been produced by AGB stars"
);
...
...
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