From 5a88894f52096d0de88077b27d33f983173f3dcc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 22 Jan 2019 23:50:05 +0800 Subject: clusters/helper: Fix a variable error in density_gas() --- fg21sim/extragalactic/clusters/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/extragalactic') 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): -- cgit v1.2.2