aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-22 18:08:43 +0800
committerAaron LI <aly@aaronly.me>2017-10-22 18:08:43 +0800
commit6fa552dca1ad74f39a7d1d44e55d9eb8eaa4a9b9 (patch)
tree300203be83bf3639cdf9c4c1cb1080f6e1e716d8 /fg21sim/extragalactic/clusters/main.py
parent8b2083b53c5f897aed7292f005d35674a962594a (diff)
downloadfg21sim-6fa552dca1ad74f39a7d1d44e55d9eb8eaa4a9b9.tar.bz2
clusters/formation: Fix problem that no mergers occurred
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 1aeb522..0be553a 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -216,6 +216,7 @@ class GalaxyClusters:
merger_mass_min=self.merger_mass_min)
clform.simulate_mergertree(main_only=True)
if self.use_max_merger:
+ # NOTE: may be ``None`` due to no mergers occurred at all!
mmev = clform.max_merger
else:
mmev = clform.recent_major_merger