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

add nonstellar timestep function which can be called from outside stellar_timestep

parent 8d3c309d
No related branches found
No related tags found
No related merge requests found
#include "../binary_c.h"
No_empty_translation_unit_warning;
#include "timestep.h"
void nonstellar_timestep(struct stardata_t * const stardata,
double * const dtm)
{
Foreach_star(star)
{
timestep_fixed_timesteps(stardata,
star,
dtm);
}
/*
* Hard wired minimum : do not apply
* if the timestep is limited by a fixed timestep
*/
Foreach_star(star)
{
if(stardata->model.fixed_timestep_triggered == FALSE &&
star->dtlimiter != DT_LIMIT_FIXED_TIMESTEP)
{
*dtm = Max(*dtm,
MINIMUM_STELLAR_TIMESTEP);
}
}
}
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