include bugfix from colvars git repo

This commit is contained in:
Axel Kohlmeyer
2014-10-31 02:08:51 -04:00
parent 83f6ab465e
commit 62c40c86fc
2 changed files with 4 additions and 4 deletions

View File

@ -406,11 +406,11 @@ colvar::colvar(std::string const &conf)
const bool found = get_keyval(conf, "extendedTemp", temp, cvm::temperature());
if (temp <= 0.0) {
if (found)
cvm::log("Error: \"extendedTemp\" must be positive.\n");
cvm::error("Error: \"extendedTemp\" must be positive.\n", INPUT_ERROR);
else
cvm::error("Error: a positive temperature must be provided, either "
"by enabling a thermostat, or through \"extendedTemp\".\n",
INPUT_ERROR);
"by enabling a thermostat, or through \"extendedTemp\".\n",
INPUT_ERROR);
}
get_keyval(conf, "extendedFluctuation", tolerance);