From 084d7d34952aa80cfd5481fa7336bb9e77ba9ffb Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 7 Mar 2020 19:59:29 +0800
Subject: [PATCH] Better ordering of the variables in the default star struct.

---
 src/stars/Default/stars_part.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/stars/Default/stars_part.h b/src/stars/Default/stars_part.h
index 29bf140987..6a0e1c5179 100644
--- a/src/stars/Default/stars_part.h
+++ b/src/stars/Default/stars_part.h
@@ -58,9 +58,6 @@ struct spart {
   /* Particle cutoff radius. */
   float h;
 
-  /*! Particle time bin */
-  timebin_t time_bin;
-
   struct {
 
     /* Number of neighbours. */
@@ -73,11 +70,14 @@ struct spart {
 
   /* Not used in the default stars */
   union {
-    double birth_time;
+    float birth_time;
 
-    double birth_scale_factor;
+    float birth_scale_factor;
   };
 
+  /*! Particle time bin */
+  timebin_t time_bin;
+
   /*! Feedback structure */
   struct feedback_spart_data feedback_data;
 
-- 
GitLab