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

clean up code

parent 0787bf5a
No related branches found
No related tags found
No related merge requests found
......@@ -836,6 +836,7 @@
"HG fractional envelope", \
}
#define NOVA_STATE_NONE 0
#define NOVA_STATE_TRIGGER 1
#define NOVA_STATE_POST 2
......
......@@ -475,7 +475,7 @@ static void cf_diffstats(struct stardata_t * RESTRICT const stardata,
{
const Boolean novae =
stardata->preferences->individual_novae == TRUE ?
Boolean_(now->novastate[k] != NOVA_STATE_NONE) :
Boolean_(now->novastate[k] == TRUE) :
Boolean_(now->novarate[k] < 0.0);
if((novae == TRUE) &&
......
......@@ -289,6 +289,7 @@ void timestep_limits(Timestep_prototype_args)
star->mass);
}
#ifdef __DEPRECATED
if(star->novastate == NOVA_STATE_TRIGGER)
{
/*
......@@ -322,7 +323,12 @@ void timestep_limits(Timestep_prototype_args)
*/
dtlim = stardata->preferences->timestep_multipliers[DT_LIMIT_NOVAE] * star->dtnova;
}
#endif
star->dtnova = nova_recurrence_time(accretion_rate,
star->mass);
dtlim = stardata->preferences->timestep_multipliers[DT_LIMIT_NOVAE] * star->dtnova;
dtlim *= 1e-6; // convert to Myr
/*
......
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