From 46c461ab272646036a6b2e32104bb74a8833129b Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Fri, 16 Oct 2020 23:50:51 +0200 Subject: [PATCH] Fix sign mistake --- src/black_holes/EAGLE/black_holes_iact.h | 2 +- src/feedback/EAGLE/feedback_iact.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/black_holes/EAGLE/black_holes_iact.h b/src/black_holes/EAGLE/black_holes_iact.h index 50fc94677f..19a9097605 100644 --- a/src/black_holes/EAGLE/black_holes_iact.h +++ b/src/black_holes/EAGLE/black_holes_iact.h @@ -208,7 +208,7 @@ runner_iact_nonsym_bh_gas_density( /* Minimise separation between the gas particles and the BH. The rays * structs with smaller ids in the ray array will refer to the particles * with smaller distances to the BH. */ - ray_minimise_distance(-pj->rho, bi->rays, arr_size, gas_id, pj->mass); + ray_minimise_distance(pj->rho, bi->rays, arr_size, gas_id, pj->mass); break; } case AGN_random_ngb_model: { diff --git a/src/feedback/EAGLE/feedback_iact.h b/src/feedback/EAGLE/feedback_iact.h index a7dde85408..373c6f41d0 100644 --- a/src/feedback/EAGLE/feedback_iact.h +++ b/src/feedback/EAGLE/feedback_iact.h @@ -140,7 +140,7 @@ runner_iact_nonsym_feedback_density(const float r2, const float *dx, /* Minimise separation between the gas particles and the star. The rays * structs with smaller ids in the ray array will refer to the particles * with smaller distances to the star. */ - ray_minimise_distance(-rho, si->feedback_data.SNII_rays, arr_size, pj->id, + ray_minimise_distance(rho, si->feedback_data.SNII_rays, arr_size, pj->id, pj->mass); break; } -- GitLab