From bf4b5b53bdc8722ecf9a1114dbb35cfa638720e7 Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Tue, 15 Oct 2019 06:40:46 +0100
Subject: [PATCH] fix bug where nova H-layer mass wasn't reset each timestep

---
 src/binary_c_derivatives.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/binary_c_derivatives.h b/src/binary_c_derivatives.h
index dcf709add..e44e9b395 100644
--- a/src/binary_c_derivatives.h
+++ b/src/binary_c_derivatives.h
@@ -281,6 +281,7 @@
             (STAR)->derivative[DERIVATIVE_STELLAR_MASS_NONCONSERVATIVE_LOSS] = \
             (STAR)->derivative[DERIVATIVE_STELLAR_MASS_ARTIFICIAL] =    \
             (STAR)->derivative[DERIVATIVE_STELLAR_MASS_IRRADIATIVE_LOSS] = \
+            (STAR)->derivative[DERIVATIVE_STELLAR_H_LAYER_MASS] =       \
             (STAR)->derivative[DERIVATIVE_STELLAR_MASS] =               \
             0.0;                                                        \
     } 
-- 
GitLab