Thermostat integrated into MolSim.cpp.