From 1c19a8a44328e10a67eaa2ff54fdadf3ef047990 Mon Sep 17 00:00:00 2001
From: Folkert Nobels <nobels@strw.leidenuniv.nl>
Date: Tue, 18 Dec 2018 16:37:45 +0100
Subject: [PATCH] Updates one parameter file

---
 examples/parameter_example.yml             | 6 +++---
 src/starformation/schaye08/starformation.h | 4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml
index c5d4c1b20c..9a602a9658 100644
--- a/examples/parameter_example.yml
+++ b/examples/parameter_example.yml
@@ -295,15 +295,15 @@ SchayeSF:
   SchmidtLawHighDensExponent:       2.0     # The high density exponent for the Kennicutt-Schmidt law
   SchmidtLawHighDens_thresh_HpCM3:  1e3
   Schaye2004:                       1       # whether to use the metallicity dependent critical star formation of Schaye (2004) (1) or not (0).
-  thresh_norm_HpCM3:                .1      # Critical sf normalization to use (is not a normalization when Schaye2004=0, than it is the value.
+  thresh_norm_HpCM3:                0.1      # Critical sf normalization to use (is not a normalization when Schaye2004=0, than it is the value.
   thresh_max_norm_HpCM3:            10.0    # Maximum norm of the critical sf density
   MetDep_Z0:                        0.002   # Scale metallicity to use for the equation (not used for Schaye2004=0)
   MetDep_SFthresh_Slope:            -0.64   # Scaling of the critical density with the metallicity (not used for Schaye2004=0)
   thresh_MaxPhysDensOn:             0       # Default is 0.
   thresh_MaxOverDens_HpCM3:         1e5     # Density at which the SF law changes
   EOS_Jeans_GammaEffective:         1.33333 # The polytropic index
-  EOS_Jeans_TemperatureNorm_K:           1e3     # No idea how this works
-  EOS_JEANS_DensityNorm_HpCM3:                   .1      # No idea what the value is.
+  EOS_Jeans_TemperatureNorm_K:      1e3     # No idea how this works
+  EOS_JEANS_DensityNorm_HpCM3:      0.1      # No idea what the value is.
 
 # Structure finding options (requires velociraptor)
 StructureFinding:
diff --git a/src/starformation/schaye08/starformation.h b/src/starformation/schaye08/starformation.h
index 3aa2f78471..421f55480c 100644
--- a/src/starformation/schaye08/starformation.h
+++ b/src/starformation/schaye08/starformation.h
@@ -259,6 +259,8 @@ INLINE static void star_formation_copy_properties(
   /* Store the birth density in the star particle */
   sp->birth_density = p->rho;
 
+  message("A star has been formed!");
+
 }
 
 /* 
@@ -400,7 +402,7 @@ INLINE static void starformation_init_backend(
 
   }
 
-  /* Claculate 1 over the metallicity for speed up */
+  /* Claculate 1 over the metallicity */
   starform->Z0_inv = 1/starform->Z0;
 
   /* Calculate the prefactor that is always common */
-- 
GitLab