Skip to content
Snippets Groups Projects
Commit 15d00d4f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

initialise the rays in black_holes_init_bpart()

parent 267c53d6
No related branches found
No related tags found
1 merge request!1199Isotropic and other feedback modes
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "minmax.h" #include "minmax.h"
#include "physical_constants.h" #include "physical_constants.h"
#include "random.h" #include "random.h"
#include "rays.h"
/* Standard includes */ /* Standard includes */
#include <float.h> #include <float.h>
...@@ -180,6 +181,9 @@ __attribute__((always_inline)) INLINE static void black_holes_init_bpart( ...@@ -180,6 +181,9 @@ __attribute__((always_inline)) INLINE static void black_holes_init_bpart(
bp->f_visc = FLT_MAX; bp->f_visc = FLT_MAX;
bp->accretion_boost_factor = -FLT_MAX; bp->accretion_boost_factor = -FLT_MAX;
bp->mass_at_start_of_step = bp->mass; /* bp->mass may grow in nibbling mode */ bp->mass_at_start_of_step = bp->mass; /* bp->mass may grow in nibbling mode */
/* Reset the rays carried by this BH */
ray_init(bp->rays, eagle_blackhole_number_of_rays);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment