From 076a78bb5e557da24e115274f12c27f912267ccf Mon Sep 17 00:00:00 2001 From: Steven Rieder Date: Fri, 19 Mar 2021 15:17:58 +0000 Subject: [PATCH] Update cluster.py --- src/amuse/ext/masc/cluster.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amuse/ext/masc/cluster.py b/src/amuse/ext/masc/cluster.py index 1946323..ae7cc1d 100644 --- a/src/amuse/ext/masc/cluster.py +++ b/src/amuse/ext/masc/cluster.py @@ -73,6 +73,8 @@ def new_fixed_mass_distribution( mass_max=stellar_mass/number_of_stars, ) initial_mass_function = new_fixed_mass_distribution + else: + raise ValueError("This imf is not implemented") if stellar_mass: # Add stars to cluster, until mass limit reached (inclusive!)