aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r--fg21sim/extragalactic/clusters/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py
index 2e27b11..2ce3e4a 100644
--- a/fg21sim/extragalactic/clusters/helper.py
+++ b/fg21sim/extragalactic/clusters/helper.py
@@ -237,7 +237,7 @@ def magnetic_field(mass, z=0.0, configs=CONFIGS):
"""
key = "extragalactic/clusters/eta_b"
eta_b = configs.getn(key)
- e_th = density_energy_thermal(mass=mass, z=z)
+ e_th = density_energy_thermal(mass=mass, z=z, configs=configs)
B = np.sqrt(8*np.pi * eta_b * e_th) * 1e6 # [G] -> [uG]
return B