diff --git a/python/mesa_pd/data/ParticleStorage.py b/python/mesa_pd/data/ParticleStorage.py index 61264f24085bcf6b5bdef73915303d9e06d0f1a5..65193bab26d9f8f8437d2c54ca5b09badc8dea92 100644 --- a/python/mesa_pd/data/ParticleStorage.py +++ b/python/mesa_pd/data/ParticleStorage.py @@ -26,6 +26,10 @@ def create_particle_property(name, type, access="grs", defValue="", syncMode="AL 'ALWAYS', this property has to be synced in every iteration """ + if (type == 'bool'): + raise RuntimeError(f"Due to flaws in the implementation of std::vector<bool>, bool is not supported as a " + f"property type! Please use char instead.") + # sort access specifier and remove duplicates foo = "".join(sorted(access)) access = ''.join([foo[i] for i in range(len(foo) - 1) if foo[i + 1] != foo[i]] + [foo[-1]])