Skip to content
Snippets Groups Projects
Commit b3072cd9 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

reorder a bit

parent 1cbe8ba5
No related branches found
No related tags found
No related merge requests found
...@@ -65,11 +65,7 @@ Event_handler_function nova_event_handler(void * const eventp, ...@@ -65,11 +65,7 @@ Event_handler_function nova_event_handler(void * const eventp,
exploder->mass -= dm_lost; exploder->mass -= dm_lost;
exploder->novastate = NOVA_STATE_POST; exploder->novastate = NOVA_STATE_POST;
/*
* Accrete some on the companion
*/
donor->mass += dm_gain;
/* /*
* calculate nova yield abundances * calculate nova yield abundances
*/ */
...@@ -92,8 +88,10 @@ Event_handler_function nova_event_handler(void * const eventp, ...@@ -92,8 +88,10 @@ Event_handler_function nova_event_handler(void * const eventp,
YIELD_NOT_FINAL, YIELD_NOT_FINAL,
NUCSYN_SOURCE_NOVAE); NUCSYN_SOURCE_NOVAE);
/* should we call nucsyn remove dm here? */
/*
* Accrete some on the companion?
*/
if(Is_not_zero(dm_gain)) if(Is_not_zero(dm_gain))
{ {
...@@ -106,6 +104,7 @@ Event_handler_function nova_event_handler(void * const eventp, ...@@ -106,6 +104,7 @@ Event_handler_function nova_event_handler(void * const eventp,
donor->dmacc,donor->Xacc, donor->dmacc,donor->Xacc,
dm_gain,Xnova dm_gain,Xnova
); );
donor->mass += dm_gain;
donor->dmacc += dm_gain; donor->dmacc += dm_gain;
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment