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

Add debugging messages to the EAGLE black holes merger loop.

parent 73d72267
No related branches found
No related tags found
1 merge request!863Black holes mergers
...@@ -215,17 +215,35 @@ runner_iact_nonsym_bh_bh_swallow(const float r2, const float *dx, ...@@ -215,17 +215,35 @@ runner_iact_nonsym_bh_bh_swallow(const float r2, const float *dx,
h = hj; h = hj;
} }
message("hello!");
const float G = 43.; // MATTHIEU: Fix this!!! const float G = 43.; // MATTHIEU: Fix this!!!
/* Merge if gravitationally bound /* The BH with the smaller ID will be merged onto the one with the larger ID
* Note that we use the kernel support here as the size and not just the */
* smoothing length */ if (bj->id < bi->id) {
if (v2_pec < G * M / (kernel_gamma * h)) {
message("ID is smaller");
/* Merge if gravitationally bound
* Note that we use the kernel support here as the size and not just the
* smoothing length */
if (v2_pec < G * M / (kernel_gamma * h)) {
/* This particle is swallowed by the BH with the largest ID of all the
* candidates wanting to swallow it */
if (bj->merger_data.swallow_id < bi->id) {
message("BH %lld wants to swallow BH particle %lld", bi->id, bj->id);
/* This particle is swallowed by the BH with the largest ID of all the bj->merger_data.swallow_id = bi->id;
* candidates wanting to swallow it */ } else {
if (bj->merger_data.swallow_id < bi->id && bj->id < bi->id) {
bj->merger_data.swallow_id = bi->id; message(
"BH %lld wants to swallow gas particle %lld BUT CANNOT (old "
"swallow id=%lld)",
bi->id, bj->id, bj->merger_data.swallow_id);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment