Skip to content
GitLab
Menu
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
97f3111f
Commit
97f3111f
authored
Feb 06, 2019
by
Matthieu Schaller
Browse files
Updated the default star particles to also include the chemistry and tracers structures.
parent
4b07ee78
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stars/Default/stars_part.h
View file @
97f3111f
...
...
@@ -22,6 +22,10 @@
/* Some standard headers. */
#include <stdlib.h>
/* Read chemistry */
#include "chemistry_struct.h"
#include "tracers_struct.h"
/**
* @brief Particle fields for the star particles.
*
...
...
@@ -65,6 +69,12 @@ struct spart {
}
density
;
/*! Tracer structure */
struct
tracers_xpart_data
tracers_data
;
/*! Chemistry structure */
struct
chemistry_part_data
chemistry_data
;
#ifdef SWIFT_DEBUG_CHECKS
/* Time of the last drift */
...
...
src/stars/EAGLE/stars_part.h
View file @
97f3111f
...
...
@@ -58,21 +58,6 @@ struct spart {
/*! Initial star mass */
float
mass_init
;
/*! Union for the birth time and birht scale factor */
union
{
/*! Birth time */
float
birth_time
;
/*! Birth scale factor */
float
birth_scale_factor
;
};
/*! Birth density */
float
birth_density
;
/*! Tracer structure */
struct
tracers_xpart_data
tracers_data
;
/* Particle cutoff radius. */
float
h
;
...
...
@@ -88,6 +73,21 @@ struct spart {
}
density
;
/*! Union for the birth time and birht scale factor */
union
{
/*! Birth time */
float
birth_time
;
/*! Birth scale factor */
float
birth_scale_factor
;
};
/*! Birth density */
float
birth_density
;
/*! Tracer structure */
struct
tracers_xpart_data
tracers_data
;
/*! Chemistry structure */
struct
chemistry_part_data
chemistry_data
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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