Commit 97f3111f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Updated the default star particles to also include the chemistry and tracers structures.

parent 4b07ee78
......@@ -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 */
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment