aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-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 d761915..6af0d06 100644
--- a/fg21sim/extragalactic/clusters/helper.py
+++ b/fg21sim/extragalactic/clusters/helper.py
@@ -287,7 +287,7 @@ def density_gas(mass, z=0.0):
Calculate the mean gas density.
Unit: [g/cm^3]
"""
- return density_number_thermal(M_main, z) * AC.mu*AC.u # [g/cm^3]
+ return density_number_thermal(mass, z) * AC.mu*AC.u # [g/cm^3]
def density_energy_thermal(mass, z=0.0, configs=CONFIGS):