Commit ed4141e2 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Raise an error if compact generator with different radii is used

parent 33ce0d93
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -378,6 +378,9 @@ def load_model(model_file):
                    rnd_engine = "COMPACT"
                if (rnd_engine == "COMPACT"):
                    check = random_compact(sconf, gconf, rnd_seed, max_rad)
                    if (check == 1):
                        print("ERROR: compact random generator works only when all sphere types have the same radius.")
                        return (None, None)
                elif (rnd_engine == "LOOSE"):
                    check = random_aggregate(sconf, gconf, rnd_seed, max_rad)
                else: