From ec72b8819b927f85a4f13aa43dbe7d1b387ecb05 Mon Sep 17 00:00:00 2001
From: Folkert Nobels <nobels@strw.leidenuniv.nl>
Date: Wed, 19 Dec 2018 14:25:52 +0100
Subject: [PATCH] Add comment in none star formation that always returns 0 and
 initialize the new_star_flag as zero.

---
 src/starformation/none/starformation.h | 1 +
 src/stars/EAGLE/stars.h                | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/starformation/none/starformation.h b/src/starformation/none/starformation.h
index 5f17ab05af..a8349862d3 100644
--- a/src/starformation/none/starformation.h
+++ b/src/starformation/none/starformation.h
@@ -38,6 +38,7 @@ struct star_formation {};
 
 /**
  * @brief Calculates if the gas particle gets converted
+ *        The gas will never be converted in none, so always returns 0.
  *
  * @param the #engine
  * @param starform the star formation law properties to use.
diff --git a/src/stars/EAGLE/stars.h b/src/stars/EAGLE/stars.h
index ffcb93d622..958736a321 100644
--- a/src/stars/EAGLE/stars.h
+++ b/src/stars/EAGLE/stars.h
@@ -45,6 +45,7 @@ __attribute__((always_inline)) INLINE static void stars_first_init_spart(
     struct spart* sp) {
 
   sp->time_bin = 0;
+  sp->new_star_flag = 0;
 }
 
 /**
-- 
GitLab