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
6cfefd19
Commit
6cfefd19
authored
6 years ago
by
Folkert Nobels
Browse files
Options
Downloads
Patches
Plain Diff
Update output such that it also include initial mass for Alexie
parent
5db8e5d9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!705
Star formation following Schaye08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/stars/EAGLE/stars_io.h
+7
-4
7 additions, 4 deletions
src/stars/EAGLE/stars_io.h
with
7 additions
and
4 deletions
src/stars/EAGLE/stars_io.h
+
7
−
4
View file @
6cfefd19
...
@@ -61,10 +61,10 @@ INLINE static void stars_write_particles(const struct spart *sparts,
...
@@ -61,10 +61,10 @@ INLINE static void stars_write_particles(const struct spart *sparts,
struct
io_props
*
list
,
struct
io_props
*
list
,
int
*
num_fields
)
{
int
*
num_fields
)
{
/* Say how much we want to
read
*/
/* Say how much we want to
write
*/
*
num_fields
=
8
;
*
num_fields
=
9
;
/* List what we want to
read
*/
/* List what we want to
write
*/
list
[
0
]
=
io_make_output_field
(
"Coordinates"
,
DOUBLE
,
3
,
UNIT_CONV_LENGTH
,
list
[
0
]
=
io_make_output_field
(
"Coordinates"
,
DOUBLE
,
3
,
UNIT_CONV_LENGTH
,
sparts
,
x
);
sparts
,
x
);
list
[
1
]
=
list
[
1
]
=
...
@@ -81,7 +81,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
...
@@ -81,7 +81,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
sparts
,
birth_density
);
sparts
,
birth_density
);
list
[
7
]
=
io_make_output_field
(
"Initial_Masses"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
list
[
7
]
=
io_make_output_field
(
"Initial_Masses"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
sparts
,
mass_init
);
sparts
,
mass_init
);
list
[
7
]
=
io_make_output_field
(
"Birth_time"
,
FLOAT
,
1
,
UNIT_CONV_TIME
,
sparts
,
list
[
8
]
=
io_make_output_field
(
"Birth_time"
,
FLOAT
,
1
,
UNIT_CONV_TIME
,
sparts
,
birth_time
);
birth_time
);
}
}
...
@@ -124,6 +124,9 @@ INLINE static void stars_props_init(struct stars_props *sp,
...
@@ -124,6 +124,9 @@ INLINE static void stars_props_init(struct stars_props *sp,
sp
->
max_smoothing_iterations
=
parser_get_opt_param_int
(
sp
->
max_smoothing_iterations
=
parser_get_opt_param_int
(
params
,
"Stars:max_ghost_iterations"
,
p
->
max_smoothing_iterations
);
params
,
"Stars:max_ghost_iterations"
,
p
->
max_smoothing_iterations
);
/* Initialize with solar abundance */
// sp->chemistry_data.smoothed_metal_mass_fraction_total =
/* Time integration properties */
/* Time integration properties */
const
float
max_volume_change
=
const
float
max_volume_change
=
parser_get_opt_param_float
(
params
,
"Stars:max_volume_change"
,
-
1
);
parser_get_opt_param_float
(
params
,
"Stars:max_volume_change"
,
-
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