Closed raimis closed 4 years ago
This should be the last PR from the getter/setter series.
How about instead having the user set the temperature? That's much more friendly, and also more consistent with everything else in OpenMM. Boltzmann's constant with units of kJ/(mol*K) is defined in SimTKOpenMMRealType.h with the name BOLTZ
.
OK! I'll change to temperature.
Can you also add tests for the new feature? Verify that the new property gets serialized correctly, and that PLUMED is using it correctly.
I have added the serialization tests. PLUMED prints the temperature (kT) to its log, but I need to think how to test it more properly.
I have added a fest for setTemperature
. I reproduce WT-MTD results, which needs correct temperature to work.
Looks good! Is this ready to merge?
Yes! It is ready to be merged.
PLUMED allows to pass kT value via its API (https://www.plumed.org/doc-v2.6/developer-doc/html/_how_to_plumed_your_m_d.html):
This PR implements a corresponding functionality for OpenMM-PLUMED API: