Fix issue with RestorableIntergrator created by refactor
@@ -293,6 +293,7 @@ class ThermostatedIntegrator(utils.RestorableOpenMMObject, PrettyPrintableIntegr
# that may keep the stationary distribution at a certain
# temperature without exposing getters and setters.
if not restored:
+ if hasattr(integrator, 'getGlobalVariableName'):
global_variable_names = set([ integrator.getGlobalVariableName(index) for index in range(integrator.getNumGlobalVariables()) ])
if 'kT' in global_variable_names:
if not hasattr(integrator, 'getTemperature'):
