From 4bc1b1bf456018aabe1873ba4f5d30dc0c68b508 Mon Sep 17 00:00:00 2001
From: Folkert Nobels <nobels@strw.leidenuniv.nl>
Date: Tue, 11 Dec 2018 10:37:32 +0100
Subject: [PATCH] Debug: Fix spelling error in variable name and update
 engine_init to include struct star_formation

---
 src/engine.h                           | 1 +
 src/starformation/none/starformation.h | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/engine.h b/src/engine.h
index 0a62e976b3..4e5e8e8562 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -416,6 +416,7 @@ void engine_init(struct engine *e, struct space *s, struct swift_params *params,
                  struct pm_mesh *mesh,
                  const struct external_potential *potential,
                  struct cooling_function_data *cooling_func,
+                 const struct star_formation *starform,
                  const struct chemistry_global_data *chemistry);
 void engine_config(int restart, struct engine *e, struct swift_params *params,
                    int nr_nodes, int nodeID, int nr_threads, int with_aff,
diff --git a/src/starformation/none/starformation.h b/src/starformation/none/starformation.h
index 40c46102dd..023ddf00b6 100644
--- a/src/starformation/none/starformation.h
+++ b/src/starformation/none/starformation.h
@@ -47,8 +47,8 @@ struct star_formation {};
  *
  * */
 int starformation_potential_to_become_star(
-    const struct star_formation* starform, struct parts* restrict p,
-    const struct xparts* restrict xp, const struct phys_const* const phys_const,
+    const struct star_formation* starform, struct part* restrict p,
+    const struct xpart* restrict xp, const struct phys_const* const phys_const,
     const struct cosmology* cosmo){
 
   return 0;
@@ -64,8 +64,8 @@ int starformation_potential_to_become_star(
  *
  * */
 void starformation_convert_to_gas( 
-    const struct star_formation* starform, const struct parts* restrict p,
-    const struct xparts* restrict xp, const struct cosmology* cosmo) {}
+    const struct star_formation* starform, const struct part* restrict p,
+    const struct xpart* restrict xp, const struct cosmology* cosmo) {}
 
 /* 
  * @brief initialization of the star formation law 
-- 
GitLab