Fix bug with setting a compound state attribute
@@ -1989,9 +1989,9 @@ class CompoundThermodynamicState(ThermodynamicState):
if any(name in C.__dict__ for C in s.__class__.__mro__):
s.__setattr__(name, value)
s.apply_to_system(self._system)
- break
+ return
- # Monkey patching.
+ # No attribute found. This is monkey patching.
super(CompoundThermodynamicState, self).__setattr__(name, value)
@classmethod
